提交 a81d4bfd 编写于 作者: R roel kluin 提交者: 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: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册