video: mx3fb: Deletion of an unnecessary check before the function call "backlight_de...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 23 Nov 2014 14:15:29 +0000 (15:15 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 4 Dec 2014 14:16:01 +0000 (16:16 +0200)
commit8a8e411dc0b57e7f930b554b3aa9309b60662db6
treeda314e50916434d5579ee08aeeefeec243ac1e07
parentbc500d6ed9e2f56a01a7a59d5366d4526111ba1e
video: mx3fb: Deletion of an unnecessary check before the function call "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: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/mx3fb.c