netxen: Use the instance of net_device_stats from net_device.
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/net/netxen/netxen_nic.h | 2 -- drivers/net/netxen/netxen_nic_main.c | 2 +- 2 files changed, 1 insertions(+), 3 deletions(-)
drivers/net/netxen/netxen_nic.h +0 -2
@@ -1203,8 +1203,6 @@ struct netxen_adapter {struct work_struct tx_timeout_task; -struct net_device_stats net_stats; -nx_nic_intr_coalesce_t coal;unsigned long state;
drivers/net/netxen/netxen_nic_main.c +1 -1
@@ -1923,7 +1923,7 @@ request_reset:struct net_device_stats *netxen_nic_get_stats (struct net_device *netdev) {struct netxen_adapter *adapter =netdev_priv (netdev); -struct net_device_stats *stats = &adapter->net_stats; +struct net_device_stats *stats = &netdev->stats;memset (stats,0 ,sizeof (*stats));
Signature · 1 line
1.6.0.4