提交 48bccd25 编写于 作者: T Thomas Sailer 提交者: David S. Miller

hamradio: Fix bit test correctly.

Signed-off-by: NThomas Sailer <t.sailer@alumni.ethz.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 86a0a1e5
......@@ -595,9 +595,8 @@ static int receive(struct net_device *dev, int cnt)
if (!(notbitstream & (0x1fc << j)))
state = 0;
/* not flag received */
else if ((bitstream & (0x1fe << j)) !=
(0x0fc << j)) {
/* flag received */
else if ((bitstream & (0x1fe << j)) == (0x0fc << j)) {
if (state)
do_rxpacket(dev);
bc->hdlcrx.bufcnt = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册