summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-06-19 00:27:35 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-06-19 00:27:35 +0000
commitb3601e885d2609e8a810348d9d129bdcabf9a0f9 (patch)
treea0600d8c004ee860ea1148ebe097d4efa7e816e4 /sys
parentb73d17176e7c5f00d6e58e24e41b6ddfd4b51f24 (diff)
Fix a typo: change "!(reg >> pin) & 1" to "!((reg >> pin) & 1)" as
intended. ok damien@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ar5008.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c
index b2731c8c2e9..6a884fab51d 100644
--- a/sys/dev/ic/ar5008.c
+++ b/sys/dev/ic/ar5008.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5008.c,v 1.19 2011/01/06 07:27:15 damien Exp $ */
+/* $OpenBSD: ar5008.c,v 1.20 2011/06/19 00:27:34 matthew Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -357,7 +357,7 @@ ar5008_gpio_read(struct athn_softc *sc, int pin)
{
KASSERT(pin < sc->ngpiopins);
if ((sc->flags & ATHN_FLAG_USB) && !AR_SREV_9271(sc))
- return (!(AR_READ(sc, AR7010_GPIO_IN) >> pin) & 1);
+ return (!((AR_READ(sc, AR7010_GPIO_IN) >> pin) & 1));
return ((AR_READ(sc, AR_GPIO_IN_OUT) >> (sc->ngpiopins + pin)) & 1);
}