From e6c8156f65e689e93063a5dda4e4ab766cd53ec5 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 3 Jun 2015 14:13:11 -0700 Subject: [PATCH] ethdev: remove useless memset eth_stats is already cleared by rte_eth_stats_get Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- lib/librte_ether/rte_ethdev.c | 1 - 1 file changed, 1 deletion(-) 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 */