summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-picolcd_backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-picolcd_backlight.c')
-rw-r--r--drivers/hid/hid-picolcd_backlight.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/hid-picolcd_backlight.c b/drivers/hid/hid-picolcd_backlight.c
index a32c5f86b..808807ad3 100644
--- a/drivers/hid/hid-picolcd_backlight.c
+++ b/drivers/hid/hid-picolcd_backlight.c
@@ -94,8 +94,7 @@ void picolcd_exit_backlight(struct picolcd_data *data)
struct backlight_device *bdev = data->backlight;
data->backlight = NULL;
- if (bdev)
- backlight_device_unregister(bdev);
+ backlight_device_unregister(bdev);
}
int picolcd_resume_backlight(struct picolcd_data *data)