diff options
author | Elad Wexler <elad.wexler@gmail.com> | 2013-09-14 15:02:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 15:53:23 (GMT) |
commit | 684116caa44d1642fcbd4d1d5b9cb975572cfa0b (patch) | |
tree | 422fad1cdcf2f61bcbc7538fff531aee48fa3a8a /drivers/hv | |
parent | bbf831dfe8538ef3797c9603b7897d4ad9ef9d4a (diff) | |
download | linux-684116caa44d1642fcbd4d1d5b9cb975572cfa0b.tar.xz |
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>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions