mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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>
This commit is contained in:
parent
06a96b33ae
commit
a81d4bfdef
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue