From: Stephen Hemminger Date: Wed, 22 Jan 2020 17:55:14 +0000 (-0800) Subject: net/bnxt: remove unnecessary memset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=77a2a3c81d1df0776cbca8adaf1163b1dbdf9b6f;p=dpdk.git net/bnxt: remove unnecessary memset The rte_ethdev layer already zeros statistics before calling the device. Fixes: 57d5e5bc86e4 ("net/bnxt: add statistics") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index 65f90e0d85..32f112b5ba 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -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;