Commit a81d4bfd authored by roel kluin's avatar roel kluin Committed by David S. Miller

net/hamradio: fix test in receive()

The negation makes it a bool before the comparison and hence it
will never evaluate to true.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06a96b33
...@@ -596,7 +596,8 @@ static int receive(struct net_device *dev, int cnt) ...@@ -596,7 +596,8 @@ static int receive(struct net_device *dev, int cnt)
state = 0; state = 0;
/* not flag received */ /* not flag received */
else if (!(bitstream & (0x1fe << j)) != (0x0fc << j)) { else if ((bitstream & (0x1fe << j)) !=
(0x0fc << j)) {
if (state) if (state)
do_rxpacket(dev); do_rxpacket(dev);
bc->hdlcrx.bufcnt = 0; bc->hdlcrx.bufcnt = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment