diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-27 22:58:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-27 22:58:49 +0000 |
commit | f48867787a38b3437f6f1e289b118e90a8a1d221 (patch) | |
tree | 0eea836dc5b6df4a5ad7ed2c13966d042fab6b4c | |
parent | 5a5fd46c883b59820d7ac2c957aa3c8ff4eb47e1 (diff) |
more brackets feels good
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 8ab59ebdcf9..14eea0bb103 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.193 2010/07/27 22:57:48 deraadt Exp $ */ +/* $OpenBSD: acpi.c,v 1.194 2010/07/27 22:58:48 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1726,8 +1726,8 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state) for (retries = 1000; retries > 0; retries--) { rega = acpi_read_pmreg(sc, ACPIREG_PM1A_STS, 0); regb = acpi_read_pmreg(sc, ACPIREG_PM1B_STS, 0); - if (rega & ACPI_PM1_WAK_STS || - regb & ACPI_PM1_WAK_STS) + if ((rega & ACPI_PM1_WAK_STS) || + (regb & ACPI_PM1_WAK_STS)) break; DELAY(10); } |