staging: olpc_dcon: Deletion of a check before backlight_device_unregister()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 24 Nov 2014 21:58:48 +0000 (22:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 22:00:22 +0000 (14:00 -0800)
commit16ceb7283987d8d7cad260bacf49f4197c625504
tree3d73283caecb6fd24cf402e7c95454e6ad09b7a8
parent968bf0cf0c18523b491a030bd56fab4c1e1640bb
staging: olpc_dcon: Deletion of a check before backlight_device_unregister()

The backlight_device_unregister() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c