From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by dpdk.org (Postfix) with ESMTP id 85DACC314 for ; Wed, 3 Jun 2015 23:13:20 +0200 (CEST) Received: by qkhq76 with SMTP id q76so13437390qkh.2 for ; Wed, 03 Jun 2015 14:13:20 -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=PSTi5cans3SQUUDyGS2+wQcUJzFdtYiWjcmJywlJSX8=; b=mYg+hIQYlXZyk2XyltkGWwhMpc/5QkpM9FeldmHUQrhR7NRedWCUXSfisUDMPL27LN z8QFX7Dp4Q1tCN+YlSWGUiQcM1AUzy32XgTAKgBxeyQhvHHFtai9UqlFdwLgai8cUM0e YlN2E/CzR1HYgiAELCVWBkGTurYp2NesemVpyl2jP3Y0scvADXMRRjYF8lWRG/J/H5Xy zU3RWRfHdDW9V842TFyMVxrzbqj911ibwmvNJxY0BAa5T2oA2ynVVKqJOqgw49gah44b 5y4+wcS1oH4gv4cMxSIdkTcNzf+mOqm8fJNoRdjQGEOuNsSQag0jRG3DrHUiRIh6xh8E pRYA== X-Gm-Message-State: ALoCoQmmBif5AhD5Oy/2eoJMn5pYgwLgmXDcIkcWkil8Z34BnbVE+lbvOa+9SeMjJEnzySLZNbpw X-Received: by 10.55.56.213 with SMTP id f204mr6414026qka.78.1433366000117; Wed, 03 Jun 2015 14:13:20 -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.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 14:13:19 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Wed, 3 Jun 2015 14:13:11 -0700 Message-Id: <1433365992-9173-3-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 2/3] ethdev: remove useless 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:20 -0000 eth_stats is already cleared by rte_eth_stats_get Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 024fe8b..5a94654 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -1766,7 +1766,6 @@ rte_eth_xstats_get(uint8_t port_id, struct rte_eth_xstats *xstats, /* now fill the xstats structure */ count = 0; - memset(ð_stats, 0, sizeof(eth_stats)); rte_eth_stats_get(port_id, ð_stats); /* global stats */ -- 2.1.4