platform: x86: Deletion of checks before backlight_device_unregister()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 24 Nov 2014 19:30:29 +0000 (20:30 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 3 Dec 2014 18:10:14 +0000 (10:10 -0800)
commit0098181016dd45c1c417656ba36b87d9101cbb83
treeadb5cead8a3f2307e94918ac9369c95e7b2166c9
parenta39f46df33c6847399f9b41b74ef09a4095fb996
platform: x86: Deletion of checks 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>
For msi-wmi.c:
Acked-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/eeepc-laptop.c
drivers/platform/x86/fujitsu-laptop.c
drivers/platform/x86/ideapad-laptop.c
drivers/platform/x86/intel_oaktrail.c
drivers/platform/x86/msi-wmi.c
drivers/platform/x86/sony-laptop.c
drivers/platform/x86/toshiba_acpi.c