aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wan/dscc4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index e81946d98543..cc00e0f89ecb 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -663,12 +663,12 @@ static inline void dscc4_rx_skb(struct dscc4_dev_priv *dpriv,
663 } else { 663 } else {
664 if (skb->data[pkt_len] & FrameRdo) 664 if (skb->data[pkt_len] & FrameRdo)
665 dev->stats.rx_fifo_errors++; 665 dev->stats.rx_fifo_errors++;
666 else if (!(skb->data[pkt_len] | ~FrameCrc)) 666 else if (!(skb->data[pkt_len] & FrameCrc))
667 dev->stats.rx_crc_errors++; 667 dev->stats.rx_crc_errors++;
668 else if (!(skb->data[pkt_len] | ~(FrameVfr | FrameRab))) 668 else if ((skb->data[pkt_len] & (FrameVfr | FrameRab)) !=
669 FrameVfr | FrameRab)
669 dev->stats.rx_length_errors++; 670 dev->stats.rx_length_errors++;
670 else 671 dev->stats.rx_errors++;
671 dev->stats.rx_errors++;
672 dev_kfree_skb_irq(skb); 672 dev_kfree_skb_irq(skb);
673 } 673 }
674refill: 674refill: