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>
This commit is contained in:
parent
df9dcb4588
commit
26c080bf83
@ -3413,7 +3413,7 @@ static int smctr_make_tx_status_code(struct net_device *dev,
|
|||||||
tsv->svi = TRANSMIT_STATUS_CODE;
|
tsv->svi = TRANSMIT_STATUS_CODE;
|
||||||
tsv->svl = S_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 */
|
/* Stripped frame status of Transmitted Frame */
|
||||||
tsv->svv[1] = tx_fstatus & 0xff;
|
tsv->svv[1] = tx_fstatus & 0xff;
|
||||||
|
Loading…
Reference in New Issue
Block a user