diff options
author | jkim <jkim@FreeBSD.org> | 2012-06-01 21:33:33 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-06-01 21:33:33 +0000 |
commit | 982ce065348d9bd67503fb3da9b35e61d73cbe67 (patch) | |
tree | c9d17d5ef03e1a1be2e0e903f6935a50549f4f65 /sys/amd64/acpica | |
parent | 2948183cecb2c3c741ea780cb8088a16f6c94ea3 (diff) | |
download | FreeBSD-src-982ce065348d9bd67503fb3da9b35e61d73cbe67.zip FreeBSD-src-982ce065348d9bd67503fb3da9b35e61d73cbe67.tar.gz |
Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r-- | sys/amd64/acpica/acpi_wakeup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c index 4a78a95..e669716 100644 --- a/sys/amd64/acpica/acpi_wakeup.c +++ b/sys/amd64/acpica/acpi_wakeup.c @@ -263,8 +263,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) status = AcpiEnterSleepStateS4bios(); else status = AcpiEnterSleepState(state, acpi_sleep_flags); - - if (status != AE_OK) { + if (ACPI_FAILURE(status)) { device_printf(sc->acpi_dev, "AcpiEnterSleepState failed - %s\n", AcpiFormatException(status)); |