hamradio: Fix bit test correctly.

Signed-off-by: Thomas Sailer <t.sailer@alumni.ethz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Thomas Sailer 2009-10-14 15:15:24 -07:00 committed by David S. Miller
parent 86a0a1e52d
commit 48bccd25df

View File

@ -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;