net/bnxt: remove unnecessary memset
The rte_ethdev layer already zeros statistics before calling
the device.
Fixes: 57d5e5bc86
("net/bnxt: add statistics")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
parent
d21e0fcc07
commit
77a2a3c81d
@ -389,7 +389,6 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
memset(bnxt_stats, 0, sizeof(*bnxt_stats));
|
||||
if (!(bp->flags & BNXT_FLAG_INIT_DONE))
|
||||
return -EIO;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user