提交 5de3fcab 编写于 作者: R roel kluin 提交者: David S. Miller

WAN: bit and/or confusion

Fix the tests that check whether Frame* bits are not set
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2394905f
...@@ -663,11 +663,11 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv, ...@@ -663,11 +663,11 @@ 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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册