net: remove useless memset's in drivers get_stats64
In dev_get_stats() the statistic structure storage has already been zeroed. Therefore network drivers do not need to call memset() again. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
bc1f44709c
commit
5944701df9
@@ -5925,7 +5925,6 @@ void e1000e_get_stats64(struct net_device *netdev,
|
||||
{
|
||||
struct e1000_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
memset(stats, 0, sizeof(struct rtnl_link_stats64));
|
||||
spin_lock(&adapter->stats64_lock);
|
||||
e1000e_update_stats(adapter);
|
||||
/* Fill out the OS statistics structure */
|
||||
|
Reference in New Issue
Block a user