aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/arm/ether3.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-08-18 16:15:31 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-19 03:12:38 -0400
commitbb2537f1e76b3fb18c3fc1dff1df98ebc10af633 (patch)
tree7c74a9ededc35cbc5ce4446911da1e10ca1598a4 /drivers/net/arm/ether3.h
parent25aec76a3bd962f0aae1d7980ab1efa56cb24b43 (diff)
ether3: Use net_device_stats from struct net_device
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/arm/ether3.h')
-rw-r--r--drivers/net/arm/ether3.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/arm/ether3.h b/drivers/net/arm/ether3.h
index 1921a3a07da7..2db63b08bdf3 100644
--- a/drivers/net/arm/ether3.h
+++ b/drivers/net/arm/ether3.h
@@ -164,7 +164,6 @@ struct dev_priv {
164 unsigned char tx_head; /* buffer nr to insert next packet */ 164 unsigned char tx_head; /* buffer nr to insert next packet */
165 unsigned char tx_tail; /* buffer nr of transmitting packet */ 165 unsigned char tx_tail; /* buffer nr of transmitting packet */
166 unsigned int rx_head; /* address to fetch next packet from */ 166 unsigned int rx_head; /* address to fetch next packet from */
167 struct net_device_stats stats;
168 struct timer_list timer; 167 struct timer_list timer;
169 int broken; /* 0 = ok, 1 = something went wrong */ 168 int broken; /* 0 = ok, 1 = something went wrong */
170}; 169};