From: Markus Elfring Date: Wed, 19 Nov 2014 17:30:22 +0000 (+0100) Subject: HID: picoLCD: Deletion of unnecessary checks before three function calls X-Git-Tag: omap-for-v4.3/fixes-rc1~125^2~1^8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b8a8262086ece4b7eb34bd2e40cce3b3c9c7079;p=pandora-kernel.git HID: picoLCD: Deletion of unnecessary checks before three function calls The functions backlight_device_unregister(), lcd_device_unregister() and rc_unregister_device() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Reviewed-by: Bruno Prémont Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed