summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-picolcd_lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-picolcd_lcd.c')
-rw-r--r--drivers/hid/hid-picolcd_lcd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/hid-picolcd_lcd.c b/drivers/hid/hid-picolcd_lcd.c
index 89821c2da6d7..22dcbe13da89 100644
--- a/drivers/hid/hid-picolcd_lcd.c
+++ b/drivers/hid/hid-picolcd_lcd.c
@@ -92,8 +92,7 @@ void picolcd_exit_lcd(struct picolcd_data *data)
struct lcd_device *ldev = data->lcd;
data->lcd = NULL;
- if (ldev)
- lcd_device_unregister(ldev);
+ lcd_device_unregister(ldev);
}
int picolcd_resume_lcd(struct picolcd_data *data)