From: Stephen Hemminger Date: Wed, 3 Jun 2015 21:13:11 +0000 (-0700) Subject: ethdev: remove useless memset X-Git-Tag: spdx-start~9139 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e6c8156f65e689e93063a5dda4e4ab766cd53ec5;p=dpdk.git ethdev: remove useless memset eth_stats is already cleared by rte_eth_stats_get Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 024fe8b2cc..5a94654a7c 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -1766,7 +1766,6 @@ rte_eth_xstats_get(uint8_t port_id, struct rte_eth_xstats *xstats, /* now fill the xstats structure */ count = 0; - memset(ð_stats, 0, sizeof(eth_stats)); rte_eth_stats_get(port_id, ð_stats); /* global stats */