Commit eaea43ab authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

cdc_eem: Use netdev stats structure

Now that netdev has its own stats structure we should use that
instead.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 008440e3
...@@ -319,7 +319,7 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ...@@ -319,7 +319,7 @@ static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
return crc == crc2; return crc == crc2;
if (unlikely(crc != crc2)) { if (unlikely(crc != crc2)) {
dev->stats.rx_errors++; dev->net->stats.rx_errors++;
dev_kfree_skb_any(skb2); dev_kfree_skb_any(skb2);
} else } else
usbnet_skb_return(dev, skb2); usbnet_skb_return(dev, skb2);
......
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