[dpdk-dev,2/3] ethdev: remove useless memset

Message ID 1433365992-9173-3-git-send-email-stephen@networkplumber.org (mailing list archive)
State Accepted, archived
Headers

Commit Message

Stephen Hemminger June 3, 2015, 9:13 p.m. UTC
  eth_stats is already cleared by rte_eth_stats_get

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/librte_ether/rte_ethdev.c | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 024fe8b..5a94654 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(&eth_stats, 0, sizeof(eth_stats));
 	rte_eth_stats_get(port_id, &eth_stats);
 
 	/* global stats */