Author: Markus Elfring <elfring@users.sourceforge.net> 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 — drivers/hid/hid-picolcd_backlight.c | 3 +– drivers/hid/hid-picolcd_cir.c | 3 …