Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI / sleep: Drop redundant acpi_disabled check

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>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
100eb0b0 4ef54410

-3
-3
drivers/acpi/sleep.c
··· 802 802 char *pos = supported; 803 803 int i; 804 804 805 - if (acpi_disabled) 806 - return 0; 807 - 808 805 acpi_sleep_dmi_check(); 809 806 810 807 sleep_states[ACPI_STATE_S0] = 1;