summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Schulist <jjschlst@gmail.com>2008-03-19 00:53:09 +0300
committerJeff Garzik <jeff@garzik.org>2008-03-26 06:15:32 +0300
commit26c080bf8308449330037f91daa3ac0a7c41023e (patch)
treead2b1d69580eae431d75dad104b3c1e7464a9e4e
parentdf9dcb4588aca9cc243cf1f3f454361a84e1cbdb (diff)
downloadlinux-26c080bf8308449330037f91daa3ac0a7c41023e.tar.xz
smctr.c: fix logical-bitwise-or confusion
This patch to drivers/net/tokenring/smctr.c fixes a "bitwise vs logical" or error. Signed-off-by: Jay Schulist <jjschlst@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/net/tokenring/smctr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tokenring/smctr.c b/drivers/net/tokenring/smctr.c
index 8909050b8ea7..5f1c5072b96f 100644
--- a/drivers/net/tokenring/smctr.c
+++ b/drivers/net/tokenring/smctr.c
@@ -3413,7 +3413,7 @@ static int smctr_make_tx_status_code(struct net_device *dev,
tsv->svi = TRANSMIT_STATUS_CODE;
tsv->svl = S_TRANSMIT_STATUS_CODE;
- tsv->svv[0] = ((tx_fstatus & 0x0100 >> 6) || IBM_PASS_SOURCE_ADDR);
+ tsv->svv[0] = ((tx_fstatus & 0x0100 >> 6) | IBM_PASS_SOURCE_ADDR);
/* Stripped frame status of Transmitted Frame */
tsv->svv[1] = tx_fstatus & 0xff;