mirror of
https://github.com/torvalds/linux
synced 2024-10-05 02:44:13 +00:00
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:
parent
2225dba205
commit
e257dd340f
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue