From: Markus Elfring Date: Mon, 24 Nov 2014 19:30:29 +0000 (+0100) Subject: platform: x86: Deletion of checks before backlight_device_unregister() X-Git-Tag: omap-for-v3.19/fixes-rc1~34^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0098181016dd45c1c417656ba36b87d9101cbb83;p=pandora-kernel.git 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 For msi-wmi.c: Acked-by: Anisse Astier Signed-off-by: Darren Hart --- Reading git-diff-tree failed