Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28a1d72a authored by Wolfram Sang's avatar Wolfram Sang Committed by Lee Jones
Browse files

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent bcd69da9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -222,7 +222,6 @@ static int tosa_lcd_remove(struct spi_device *spi)
{
	struct tosa_lcd_data *data = spi_get_drvdata(spi);

	if (data->i2c)
	i2c_unregister_device(data->i2c);

	tosa_lcd_tg_off(data);