Commit Message

struct net_device has its own struct net_device_stats member, so use
this one instead of a private copy in the ether1_priv struct. As the new
ndo_get_stats function would just return dev->stats we can omit it. This
patch also removes an incorrect memset of the stats on open.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
drivers/net/arm/ether1.c | 34 ++++++++++++----------------------
drivers/net/arm/ether1.h | 1 -
2 files changed, 12 insertions(+), 23 deletions(-)

Comments

From: Tobias Klauser <tklauser@distanz.ch>
Date: Thu, 19 Aug 2010 08:15:04 +0200
> struct net_device has its own struct net_device_stats member, so use> this one instead of a private copy in the ether1_priv struct. As the new> ndo_get_stats function would just return dev->stats we can omit it. This> patch also removes an incorrect memset of the stats on open.> > Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html