ethdev: remove useless memset
eth_stats is already cleared by rte_eth_stats_get Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
parent
94ef296414
commit
e6c8156f65
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user