summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-04-08 06:16:19 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-04-08 06:16:19 +0000
commit7da4231cf46cdb277efe551cf79c595ebe7086ec (patch)
tree4a436955d154e2d05225e728186ae9134058012c /sys/dev
parentf2f1e50cd642e8dca73f067d4b0fbc43ee07d6a1 (diff)
Fix typo in ale_stop_mac().
From FreeBSD ok kevlo@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ale.c b/sys/dev/pci/if_ale.c
index 8f434c6d383..9add52c5cdc 100644
--- a/sys/dev/pci/if_ale.c
+++ b/sys/dev/pci/if_ale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ale.c,v 1.25 2012/11/29 21:10:32 brad Exp $ */
+/* $OpenBSD: if_ale.c,v 1.26 2013/04/08 06:16:18 brad Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
@@ -1930,7 +1930,7 @@ ale_stop_mac(struct ale_softc *sc)
reg = CSR_READ_4(sc, ALE_MAC_CFG);
if ((reg & (MAC_CFG_TX_ENB | MAC_CFG_RX_ENB)) != 0) {
- reg &= ~MAC_CFG_TX_ENB | MAC_CFG_RX_ENB;
+ reg &= ~(MAC_CFG_TX_ENB | MAC_CFG_RX_ENB);
CSR_WRITE_4(sc, ALE_MAC_CFG, reg);
}