net/hamradio: fix test in receive()
authorroel kluin <roel.kluin@gmail.com>
Tue, 6 Oct 2009 01:20:08 +0000 (01:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2009 10:44:08 +0000 (03:44 -0700)
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>
drivers/net/hamradio/baycom_epp.c

index 7bcaf7c66243af20bc87c88d6fe0251492142d6e..ee06a13ba0f6fc1c5d0d38441ad52ffdf3fca110 100644 (file)
@@ -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;