diff options
author | Ajit Khaparde <ajitkhaparde@gmail.com> | 2009-10-06 22:45:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-08 01:00:25 -0400 |
commit | 5a4d631154de41bb43eefb03d2124224c23c1fa4 (patch) | |
tree | 61402c9fc26dff20c3110d42fcc892357e0df24b /drivers/net/netxen | |
parent | 7274c20f7b6a7bd6e3e8441e1727bf9cfd8235bb (diff) |
netxen: Use the instance of net_device_stats from net_device.
Since net_device has an instance of net_device_stats,
we can remove the instance of this from the private adapter structure.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 2 | ||||
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 7384f59df615..5c766b52f1dc 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -1203,8 +1203,6 @@ struct netxen_adapter { | |||
1203 | 1203 | ||
1204 | struct work_struct tx_timeout_task; | 1204 | struct work_struct tx_timeout_task; |
1205 | 1205 | ||
1206 | struct net_device_stats net_stats; | ||
1207 | |||
1208 | nx_nic_intr_coalesce_t coal; | 1206 | nx_nic_intr_coalesce_t coal; |
1209 | 1207 | ||
1210 | unsigned long state; | 1208 | unsigned long state; |
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index b5aa974827e5..0039b85d4d53 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -1923,7 +1923,7 @@ request_reset: | |||
1923 | struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev) | 1923 | struct net_device_stats *netxen_nic_get_stats(struct net_device *netdev) |
1924 | { | 1924 | { |
1925 | struct netxen_adapter *adapter = netdev_priv(netdev); | 1925 | struct netxen_adapter *adapter = netdev_priv(netdev); |
1926 | struct net_device_stats *stats = &adapter->net_stats; | 1926 | struct net_device_stats *stats = &netdev->stats; |
1927 | 1927 | ||
1928 | memset(stats, 0, sizeof(*stats)); | 1928 | memset(stats, 0, sizeof(*stats)); |
1929 | 1929 | ||