History

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.

Wolfram Sang committed 7 years ago

Commit 28a1d721 parent bcd69da1 file · +1 −2Browse files

Unified · Split

drivers/video/backlight/tosa_lcd.c+1−2
@@ -222,8 +222,7 @@ static int tosa_lcd_remove(struct spi_device *spi) · 221 unmodified lines
222{222{
223 struct tosa_lcd_data *data = spi_get_drvdata(spi);223 struct tosa_lcd_data *data = spi_get_drvdata(spi);
224 224
225 if (data->i2c)225 i2c_unregister_device(data->i2c);
226 i2c_unregister_device(data->i2c);
227 226
228 tosa_lcd_tg_off(data);227 tosa_lcd_tg_off(data);
229 228

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t