summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/network/i82586.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-11 20:10:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-11 20:10:25 +0000
commit79269f6e3a0b91e9f53e85811c498392855e11be (patch)
tree9c657d675b21799cd513982150d57b679586a2de /c/src/libchip/network/i82586.c
parent2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-79269f6e3a0b91e9f53e85811c498392855e11be.tar.bz2
2009-05-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libchip/network/i82586.c: Fix warning in manner suggested by Arnout Vandecappelle <arnout@mind.be> in http://www.rtems.org/pipermail/rtems-users/2009-May/005460.html.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/network/i82586.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/libchip/network/i82586.c b/c/src/libchip/network/i82586.c
index c4a9f96d9b..7ec9dbb438 100644
--- a/c/src/libchip/network/i82586.c
+++ b/c/src/libchip/network/i82586.c
@@ -1719,7 +1719,7 @@ ie_cfg_setup(struct ie_softc *sc, int cmd, int promiscuous, int manchester)
*IE_CMD_CFG_IFS(buf) = 0x60;
*IE_CMD_CFG_SLOT_LOW(buf) = 0;
*IE_CMD_CFG_SLOT_HIGH(buf) = 0xf2;
- *IE_CMD_CFG_PROMISC(buf) = !!promiscuous | manchester << 2;
+ *IE_CMD_CFG_PROMISC(buf) = (!!promiscuous) | (manchester << 2);
*IE_CMD_CFG_CRSCDT(buf) = 0;
*IE_CMD_CFG_MINLEN(buf) = 64;
*IE_CMD_CFG_JUNK(buf) = 0xff;