summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-10-02 13:24:09 -0700
committerLen Brown <len.brown@intel.com>2007-10-10 00:23:21 -0400
commit6cffd46651b881a11791a7ef4d99f2f20853fcd9 (patch)
treec650c5d68586fbc4097ec562c2a9a864eb392b65 /drivers/acpi
parent8a0bb7362587807fec985f72fb0317aa8ed24835 (diff)
downloadop-kernel-dev-6cffd46651b881a11791a7ef4d99f2f20853fcd9.zip
op-kernel-dev-6cffd46651b881a11791a7ef4d99f2f20853fcd9.tar.gz
ACPI: clean up acpi_enter_sleep_state_prep
Remove some redundant code from acpi_enter_sleep_state_prep() and clean up a comment in there. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/hardware/hwsleep.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c
index cf69c00..8181afb 100644
--- a/drivers/acpi/hardware/hwsleep.c
+++ b/drivers/acpi/hardware/hwsleep.c
@@ -234,15 +234,11 @@ acpi_status acpi_enter_sleep_state_prep(u8 sleep_state)
"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)
OpenPOWER on IntegriCloud