Commit 5de3fcab authored by roel kluin's avatar roel kluin Committed by David S. Miller

WAN: bit and/or confusion

Fix the tests that check whether Frame* bits are not set
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2394905f
......@@ -663,11 +663,11 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv,
} else {
if (skb->data[pkt_len] & FrameRdo)
dev->stats.rx_fifo_errors++;
else if (!(skb->data[pkt_len] | ~FrameCrc))
else if (!(skb->data[pkt_len] & FrameCrc))
dev->stats.rx_crc_errors++;
else if (!(skb->data[pkt_len] | ~(FrameVfr | FrameRab)))
else if ((skb->data[pkt_len] & (FrameVfr | FrameRab)) !=
FrameVfr | FrameRab)
dev->stats.rx_length_errors++;
else
dev->stats.rx_errors++;
dev_kfree_skb_irq(skb);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment