diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-10 18:48:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-13 06:32:43 -0400 |
commit | 127aa0e14b3e1f8476c4781facdfac11d5546872 (patch) | |
tree | 939bdf390d438942fb1efbc158f92705900817f9 /drivers/net/can | |
parent | acbbc07145b919248c410e1852b953d385be5c97 (diff) |
drivers: net: last_rx elimination
Network drivers do not have to update last_rx, unless they need it for
their private use.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/at91_can.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 3f7ceaebd687..5f983487d6e4 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c | |||
@@ -661,7 +661,6 @@ static int at91_poll_err(struct net_device *dev, int quota, u32 reg_sr) | |||
661 | at91_poll_err_frame(dev, cf, reg_sr); | 661 | at91_poll_err_frame(dev, cf, reg_sr); |
662 | netif_receive_skb(skb); | 662 | netif_receive_skb(skb); |
663 | 663 | ||
664 | dev->last_rx = jiffies; | ||
665 | dev->stats.rx_packets++; | 664 | dev->stats.rx_packets++; |
666 | dev->stats.rx_bytes += cf->can_dlc; | 665 | dev->stats.rx_bytes += cf->can_dlc; |
667 | 666 | ||
@@ -898,7 +897,6 @@ static void at91_irq_err(struct net_device *dev) | |||
898 | at91_irq_err_state(dev, cf, new_state); | 897 | at91_irq_err_state(dev, cf, new_state); |
899 | netif_rx(skb); | 898 | netif_rx(skb); |
900 | 899 | ||
901 | dev->last_rx = jiffies; | ||
902 | dev->stats.rx_packets++; | 900 | dev->stats.rx_packets++; |
903 | dev->stats.rx_bytes += cf->can_dlc; | 901 | dev->stats.rx_bytes += cf->can_dlc; |
904 | 902 | ||