Skip to contentSkip to conversation

ACPI: Clean up acpi_enter_sleep_state_prep

PATCH In review Rafael J. Wysocki 2 participants 3 messages Aug 22, 2007 – Aug 24, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/acpi/hardware/hwsleep.c |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/acpi/hardware/hwsleep.c +3 -7
Index: linux-2.6.23-rc3/drivers/acpi/hardware/hwsleep.c
===================================================================
@@ -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)
#1 lore raw
Quoted 6 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

Remove some redundant code from acpi_enter_sleep_state_prep() and clean up a comment in there.

ACK.
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html