mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue