Commit a87406c5 authored by Andy Shevchenko's avatar Andy Shevchenko

platform/x86: samsung-laptop: Drop duplicate check for led_classdev_unregister()

led_classdev_unregister() already has the very same check, so,
drop a duplicate in the driver.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 410a7724
...@@ -1138,8 +1138,7 @@ static enum led_brightness kbd_led_get(struct led_classdev *led_cdev) ...@@ -1138,8 +1138,7 @@ static enum led_brightness kbd_led_get(struct led_classdev *led_cdev)
static void samsung_leds_exit(struct samsung_laptop *samsung) static void samsung_leds_exit(struct samsung_laptop *samsung)
{ {
if (!IS_ERR_OR_NULL(samsung->kbd_led.dev)) led_classdev_unregister(&samsung->kbd_led);
led_classdev_unregister(&samsung->kbd_led);
if (samsung->led_workqueue) if (samsung->led_workqueue)
destroy_workqueue(samsung->led_workqueue); destroy_workqueue(samsung->led_workqueue);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment