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,12 +663,12 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv, ...@@ -663,12 +663,12 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv,
} else { } else {
if (skb->data[pkt_len] & FrameRdo) if (skb->data[pkt_len] & FrameRdo)
dev->stats.rx_fifo_errors++; dev->stats.rx_fifo_errors++;
else if (!(skb->data[pkt_len] | ~FrameCrc)) else if (!(skb->data[pkt_len] & FrameCrc))
dev->stats.rx_crc_errors++; 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++; dev->stats.rx_length_errors++;
else dev->stats.rx_errors++;
dev->stats.rx_errors++;
dev_kfree_skb_irq(skb); dev_kfree_skb_irq(skb);
} }
refill: refill:
......
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