From: deraadt Date: Tue, 27 Jul 2010 22:58:48 +0000 (+0000) Subject: more brackets feels good X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=acc8533656b07a2a587d4590eaf7540f3dc1e5ce;p=openbsd more brackets feels good --- 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 * Copyright (c) 2005 Jordan Hargrave @@ -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); }