]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
ACPI / sleep: Drop redundant acpi_disabled check
authorHanjun Guo <hanjun.guo@linaro.org>
Thu, 5 Dec 2013 16:03:41 +0000 (00:03 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 7 Dec 2013 00:36:32 +0000 (01:36 +0100)
acpi_sleep_init() is only called from acpi_bus_init() and the
code logic shows that it doesn't need to check acpi_disabled:

acpi_init();
if (acpi_disabled) return;
acpi_bus_init();
acpi_sleep_init();
if (acpi_disabled)
return 0;

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c

index ea9cc373ffd854ac205604abe652a43f211cf24d..cb889c715e145767e913dd2604b328b02e087194 100644 (file)
@@ -802,9 +802,6 @@ int __init acpi_sleep_init(void)
        char *pos = supported;
        int i;
 
-       if (acpi_disabled)
-               return 0;
-
        acpi_sleep_dmi_check();
 
        sleep_states[ACPI_STATE_S0] = 1;