From: Herbert Xu Date: Mon, 29 Jun 2009 16:50:51 +0000 (+0000) Subject: dm9601: Use netdev stats structure X-Git-Tag: v2.6.31-rc2~26^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9612101cb33862cc160069cc8423926d61db51f8;p=platform%2Fupstream%2Fkernel-adaptation-pc.git dm9601: Use netdev stats structure Now that netdev has its own stats structure we should use that instead. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index 7ae8244..1d3730d 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c @@ -513,11 +513,11 @@ static int dm9601_rx_fixup(struct usbnet *dev, struct sk_buff *skb) len = (skb->data[1] | (skb->data[2] << 8)) - 4; if (unlikely(status & 0xbf)) { - if (status & 0x01) dev->stats.rx_fifo_errors++; - if (status & 0x02) dev->stats.rx_crc_errors++; - if (status & 0x04) dev->stats.rx_frame_errors++; - if (status & 0x20) dev->stats.rx_missed_errors++; - if (status & 0x90) dev->stats.rx_length_errors++; + if (status & 0x01) dev->net->stats.rx_fifo_errors++; + if (status & 0x02) dev->net->stats.rx_crc_errors++; + if (status & 0x04) dev->net->stats.rx_frame_errors++; + if (status & 0x20) dev->net->stats.rx_missed_errors++; + if (status & 0x90) dev->net->stats.rx_length_errors++; return 0; }