]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPI: Remove the useless check in osl.c
authorFeng Tang <feng.tang@intel.com>
Mon, 22 Oct 2012 23:29:49 +0000 (01:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Oct 2012 23:29:49 +0000 (01:29 +0200)
Clean up dpc->work initialization in __acpi_os_execute().

[rjw: Added the changelog.]
Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c

index 9eaf708f588553ee78b10bb6571e55859fb1db3c..e76a7f59740af4a77d615ea23fd2fd4033bc7adb 100644 (file)
@@ -949,12 +949,7 @@ static acpi_status __acpi_os_execute(acpi_execute_type type,
                (type == OSL_NOTIFY_HANDLER ? kacpi_notify_wq : kacpid_wq);
        dpc->wait = hp ? 1 : 0;
 
-       if (queue == kacpi_hotplug_wq)
-               INIT_WORK(&dpc->work, acpi_os_execute_deferred);
-       else if (queue == kacpi_notify_wq)
-               INIT_WORK(&dpc->work, acpi_os_execute_deferred);
-       else
-               INIT_WORK(&dpc->work, acpi_os_execute_deferred);
+       INIT_WORK(&dpc->work, acpi_os_execute_deferred);
 
        /*
         * On some machines, a software-initiated SMI causes corruption unless