null: remove useless memset
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 3 Jun 2015 21:13:12 +0000 (14:13 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 4 Jun 2015 08:46:45 +0000 (10:46 +0200)
The stats area is already cleared before calling eth_stats_get().

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/null/rte_eth_null.c

index 7792315..e244595 100644 (file)
@@ -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)));