Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a81d4bfd authored by roel kluin's avatar roel kluin Committed by David S. Miller
Browse files

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: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06a96b33
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;