Skip to content

Commit

Permalink
smctr.c: fix logical-bitwise-or confusion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jay Schulist authored and Jeff Garzik committed Mar 26, 2008
1 parent df9dcb4 commit 26c080b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/tokenring/smctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26c080b

Please sign in to comment.