]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5c296bb135097568844d56d4cedf82571ddd467
tree3d73283caecb6fd24cf402e7c95454e6ad09b7a8
parent3dc68d597a5b812736ec44a38200c3fb53e32ce7
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