diff options
author | Konrad Zapalowicz <bergo.torino@gmail.com> | 2014-08-16 16:58:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-17 18:52:25 +0200 |
commit | ed7f92da59f24dd966555efef978fe14085b3318 (patch) | |
tree | b9febcf3a261e37f885434292d0899047f6ddf2e /drivers/mtd/ssfdc.c | |
parent | staging: dgnc: Remove not needed dgnc_driver_start variable (diff) | |
download | linux-ed7f92da59f24dd966555efef978fe14085b3318.tar.xz linux-ed7f92da59f24dd966555efef978fe14085b3318.zip |
staging: dgnc: Remove unnecessary dgnc_Major_Control_Registered variable
The dgnc_Major_Control_Registered variable purpose was to act as a flag
to indicate if the character device has been successfully registered
into the kernel. This flag was later checked in the module cleanup
function to know if the character device needs to be deregistered.
However the {device,class}_destroy and unregister_chrdev functions may
be called with 'invalid' data perfectly fine. This means that this
variable is not needed and can safely be removed which is what this
commit does.
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/ssfdc.c')
0 files changed, 0 insertions, 0 deletions