platform/x86: eeepc-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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
Andy Shevchenko 2020-05-07 19:37:23 +03:00
parent 2225dba205
commit e257dd340f

View file

@ -541,13 +541,11 @@ static int eeepc_led_init(struct eeepc_laptop *eeepc)
static void eeepc_led_exit(struct eeepc_laptop *eeepc) static void eeepc_led_exit(struct eeepc_laptop *eeepc)
{ {
if (!IS_ERR_OR_NULL(eeepc->tpd_led.dev)) led_classdev_unregister(&eeepc->tpd_led);
led_classdev_unregister(&eeepc->tpd_led);
if (eeepc->led_workqueue) if (eeepc->led_workqueue)
destroy_workqueue(eeepc->led_workqueue); destroy_workqueue(eeepc->led_workqueue);
} }
/* /*
* PCI hotplug (for wlan rfkill) * PCI hotplug (for wlan rfkill)
*/ */