ACPI: clean up acpi_enter_sleep_state_prep
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 2 Oct 2007 20:24:09 +0000 (13:24 -0700)
committerLen Brown <len.brown@intel.com>
Wed, 10 Oct 2007 04:23:21 +0000 (00:23 -0400)
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>
drivers/acpi/hardware/hwsleep.c

index cf69c0040a390d407d0cd2b2da6c4e21882e22af..8181afbd1d4d6830f79e7fa6aa8b346ff89cb723 100644 (file)
@@ -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)