ACPI: clean up acpi_enter_sleep_state_prep
PATCH 5/8 ACPI: clean up acpi_enter_sleep_state_prep
From: Rafael J. Wysocki <[email protected]>
Remove some redundant code from acpi_enter_sleep_state_prep() and clean up a comment in there.
Signed-off-by Rafael J. Wysocki <[email protected]>
Cc Len Brown <[email protected]>
Acked-by Pavel Machek <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/acpi/hardware/hwsleep.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/acpi/hardware/hwsleep.c renamed from drivers/acpi/hardware/hwsleep.c~acpi-clean-up-acpi_enter_sleep_state_prep +3 -7
@@ -234,15 +234,11 @@ acpi_status acpi_enter_sleep_state_prep( "While executing method _SST")); } -/* -* 1) Disable/Clear all GPEs -*/ +/* Disable/Clear all GPEs */ + status =acpi_hw_disable_all_gpes (); -if (ACPI_FAILURE (status)) { -return_ACPI_STATUS (status); - } -return_ACPI_STATUS (AE_OK ); +return_ACPI_STATUS (status); }ACPI_EXPORT_SYMBOL (acpi_enter_sleep_state_prep)
_