summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/apm
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-01-07 04:12:53 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-08 23:51:44 +0100
commit5944701df90d9577658e2354cc27c4ceaeca30fe (patch)
tree5bb624e7bfe7876f7cd052946be1e5f8493a1ab4 /drivers/net/ethernet/apm
parentnet: make ndo_get_stats64 a void function (diff)
downloadlinux-5944701df90d9577658e2354cc27c4ceaeca30fe.tar.xz
linux-5944701df90d9577658e2354cc27c4ceaeca30fe.zip
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>
Diffstat (limited to 'drivers/net/ethernet/apm')
-rw-r--r--drivers/net/ethernet/apm/xgene/xgene_enet_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
index 45f2204e6695..de59db6c5841 100644
--- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
+++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c
@@ -1462,7 +1462,6 @@ static void xgene_enet_get_stats64(
struct xgene_enet_desc_ring *ring;
int i;
- memset(stats, 0, sizeof(struct rtnl_link_stats64));
for (i = 0; i < pdata->txq_cnt; i++) {
ring = pdata->tx_ring[i];
if (ring) {