diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2012-06-01 21:33:33 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2012-06-01 21:33:33 +0000 |
commit | 9ad569771a09a83a522168b17b1f40590da4a38e (patch) | |
tree | c9d17d5ef03e1a1be2e0e903f6935a50549f4f65 /sys/i386/acpica | |
parent | b5ae8dbaa5358ef794afde1955dfa97e6ab3f14f (diff) | |
download | src-9ad569771a09a83a522168b17b1f40590da4a38e.tar.gz src-9ad569771a09a83a522168b17b1f40590da4a38e.zip |
Consistently use ACPI_SUCCESS() and ACPI_FAILURE() macros wherever possible.
Notes
Notes:
svn path=/head/; revision=236424
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 398ab4ca0c0b..fdd0732a5438 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -249,8 +249,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)); |