OSDN Git Service

video: backlight: tosa_lcd: drop check because i2c_unregister_device() is NULL safe
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 20 Aug 2019 15:34:39 +0000 (17:34 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 2 Sep 2019 14:54:47 +0000 (15:54 +0100)
commit28a1d72a221ecdf8f63205d40cb654c81a2b2da7
tree5dfc6abba6af1b312e764726dce714e52a5ff776
parentbcd69da98e36afccb4cb5fbdbd2b7bb78c07184d
video: backlight: tosa_lcd: drop check because i2c_unregister_device() is NULL safe

No need to check the argument of i2c_unregister_device() because the
function itself does it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/tosa_lcd.c