From: Stephen Hemminger Date: Wed, 3 Jun 2015 21:13:12 +0000 (-0700) Subject: null: remove useless memset X-Git-Tag: spdx-start~9138 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8ade036008aea682ada78c0551cc465d7fbcf933;p=dpdk.git null: remove useless memset The stats area is already cleared before calling eth_stats_get(). Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 7792315c01..e244595c4d 100644 --- a/drivers/net/null/rte_eth_null.c +++ b/drivers/net/null/rte_eth_null.c @@ -296,7 +296,6 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *igb_stats) return; internal = dev->data->dev_private; - memset(igb_stats, 0, sizeof(*igb_stats)); num_stats = RTE_MIN((unsigned)RTE_ETHDEV_QUEUE_STAT_CNTRS, RTE_MIN(internal->nb_rx_queues, RTE_DIM(internal->rx_null_queues)));