summaryrefslogtreecommitdiff
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2009-10-06 01:20:08 +0000
committerDavid S. Miller <davem@davemloft.net>2009-10-13 03:44:08 -0700
commita81d4bfdef72af6b332306a64e2d119bd5365506 (patch)
tree5aeca0869589bc38f5b8e529cf927b39c7a57edc /drivers/net/hamradio
parent06a96b33aea838b61a6eeccded781a305cf85a12 (diff)
downloadlinux-3.10-a81d4bfdef72af6b332306a64e2d119bd5365506.tar.gz
linux-3.10-a81d4bfdef72af6b332306a64e2d119bd5365506.tar.bz2
linux-3.10-a81d4bfdef72af6b332306a64e2d119bd5365506.zip
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 <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/baycom_epp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/hamradio/baycom_epp.c b/drivers/net/hamradio/baycom_epp.c
index 7bcaf7c6624..ee06a13ba0f 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;