From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by dpdk.org (Postfix) with ESMTP id AFD10C322 for ; Wed, 3 Jun 2015 23:13:21 +0200 (CEST) Received: by qgf75 with SMTP id 75so8764578qgf.1 for ; Wed, 03 Jun 2015 14:13:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MYCPpX7tZTZ3bWmKMfJFoX+VxgtyE83lzBD72pOSJxQ=; b=NpuVO3K9bnMyrmOopC5lk4l4eIpaqU8Uh58YXTaleg/TfOMjyy9O78IDr6uBYXWXiu DO8ISdPy/WJU0JjlQt7gBwjGOWc+qvemTeTgxszKPZnPXA+dXVn25Says2981HDsJFT9 qGugdi2PHruyjs+jwpakmjkeL8Ak3H8r+pXdmGWt5ZxjjPd1cY0RjhaA4GD1bTbrgJ9m HDNljyxkRvnLLR4s0tLXkg1vrtmejqUYibWdHErGg8s4ZIiMI8exuNXDmoOrFkzE+9Vn HCcvQFM7P/DVkYi62z+GwPoQ+SBUIXScVXUKX7m++C6s1Bg+5JvPiV3VqNn3yNW4rUgn nmsw== X-Gm-Message-State: ALoCoQnkGhQy8GFqpwEdtdCo+l/ToIWDI0HBX1EtPE7bUOU5ZC7mh4e9e4mv8gdzn49f2BFiKEPg X-Received: by 10.55.25.145 with SMTP id 17mr63487220qkz.46.1433366001318; Wed, 03 Jun 2015 14:13:21 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id x137sm1123906qkx.28.2015.06.03.14.13.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 14:13:20 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Wed, 3 Jun 2015 14:13:12 -0700 Message-Id: <1433365992-9173-4-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433365992-9173-1-git-send-email-stephen@networkplumber.org> References: <1433365992-9173-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 3/3] null: remove unnecessary memset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2015 21:13:22 -0000 The stats area is already cleared before calling eth_stats_get(). Signed-off-by: Stephen Hemminger --- drivers/net/null/rte_eth_null.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/null/rte_eth_null.c b/drivers/net/null/rte_eth_null.c index 7792315..e244595 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))); -- 2.1.4