]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: ps8622: Delete an unnecessary check before backlight_device_unregister()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 22 Jul 2016 12:45:51 +0000 (14:45 +0200)
committerSean Paul <seanpaul@chromium.org>
Fri, 22 Jul 2016 15:23:38 +0000 (11:23 -0400)
commitc2c253f5819b5f8aadd73f957632d5dc9abac0a3
treecce0359c68fa09f8e9946c9770d799c2cdc5766b
parentb64c35668a87444fad19b91c727f05a936f838e9
drm/bridge: ps8622: Delete an unnecessary check 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>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/791089e4-201c-ad01-9c3b-f49835765177@users.sourceforge.net
drivers/gpu/drm/bridge/parade-ps8622.c