commit | 684116caa44d1642fcbd4d1d5b9cb975572cfa0b | [log] [tgz] |
---|---|---|
author | Elad Wexler <elad.wexler@gmail.com> | Sat Sep 14 18:02:11 2013 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Sep 26 08:53:23 2013 -0700 |
tree | 422fad1cdcf2f61bcbc7538fff531aee48fa3a8a | |
parent | bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a [diff] |
Drivers: char: misc: 'misc_deregister()' changed the 'mutex_unlock' logic upon an error This change improves code readability & is less error-prone. For example: case adding more error paths one should remember to call 'mutex_unlock' Signed-off-by: Elad Wexler <elad.wexler@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>