From: roel kluin Date: Tue, 6 Oct 2009 01:20:08 +0000 (+0000) Subject: net/hamradio: fix test in receive() X-Git-Tag: Ubuntu-5.10.0-12.13~30462^2~819 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a81d4bfdef72af6b332306a64e2d119bd5365506;p=mirror_ubuntu-hirsute-kernel.git 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: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c index 7bcaf7c66243..ee06a13ba0f6 100644 --- a/drivers/net/hamradio/baycom_epp.c +++ b/drivers/net/hamradio/baycom_epp.c @@ -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;