summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/hid/hid-picolcd_backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/hid/hid-picolcd_backlight.c')
-rw-r--r--kernel/drivers/hid/hid-picolcd_backlight.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/drivers/hid/hid-picolcd_backlight.c b/kernel/drivers/hid/hid-picolcd_backlight.c
index a32c5f86b..808807ad3 100644
--- a/kernel/drivers/hid/hid-picolcd_backlight.c
+++ b/kernel/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)