mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 06:34:17 +08: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)
|
||||
{
|
||||
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)
|
||||
destroy_workqueue(eeepc->led_workqueue);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* PCI hotplug (for wlan rfkill)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user