Skip to content

Commit

Permalink
net/hamradio: fix test in receive()
Browse files Browse the repository at this point in the history
The negation makes it a bool before the comparison and hence it
will never evaluate to true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
roel kluin authored and David S. Miller committed Oct 13, 2009
1 parent 06a96b3 commit a81d4bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/hamradio/baycom_epp.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,8 @@ static int receive(struct net_device *dev, int cnt)
state = 0;

/* not flag received */
else if (!(bitstream & (0x1fe << j)) != (0x0fc << j)) {
else if ((bitstream & (0x1fe << j)) !=
(0x0fc << j)) {
if (state)
do_rxpacket(dev);
bc->hdlcrx.bufcnt = 0;
Expand Down

0 comments on commit a81d4bf

Please sign in to comment.