From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7672CA04E6 for ; Wed, 18 Nov 2020 12:46:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BBAFDC8DC; Wed, 18 Nov 2020 12:45:52 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 400C1C90E; Wed, 18 Nov 2020 12:45:48 +0100 (CET) IronPort-SDR: 8f7yHJk7YB4xXZ0qLukelbqGRUhpo5QbLA6B9OuTH4UHLo+vpeGBsNZytkQF3SWzQFSzo5akdD flA3qLlXOTWQ== X-IronPort-AV: E=McAfee;i="6000,8403,9808"; a="158876072" X-IronPort-AV: E=Sophos;i="5.77,486,1596524400"; d="scan'208";a="158876072" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2020 03:45:47 -0800 IronPort-SDR: 0iLi3s+ESdBjuBY/wvXgU5jGkyHA5hJffv/BchpZdAW4CU/y7lh+gu0fDVQhGRLg3PVwwcA1Ph 3UC+DqiUwhPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,486,1596524400"; d="scan'208";a="476313168" Received: from silpixa00399752.ir.intel.com (HELO silpixa00399752.ger.corp.intel.com) ([10.237.222.180]) by orsmga004.jf.intel.com with ESMTP; 18 Nov 2020 03:45:46 -0800 From: Ferruh Yigit To: Juhamatti Kuusisaari Cc: Ferruh Yigit , dev@dpdk.org, stable@dpdk.org Date: Wed, 18 Nov 2020 11:45:23 +0000 Message-Id: <20201118114525.99053-6-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201118114525.99053-1-ferruh.yigit@intel.com> References: <20201117171435.2303641-1-ferruh.yigit@intel.com> <20201118114525.99053-1-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v2 5/7] net/pcap: remove local variable shadown outer one X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 'ret' is already defined in the function scope, removing the 'ret' in the block scope. Fixes: c9507cd0cada ("net/pcap: support physical interface MAC address") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit --- Cc: juhamatti.kuusisaari@coriant.com --- drivers/net/pcap/rte_eth_pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 4930d7d382..dd9ef33c85 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -1324,7 +1324,7 @@ eth_from_pcaps(struct rte_vdev_device *vdev, /* phy_mac arg is applied only only if "iface" devarg is provided */ if (rx_queues->phy_mac) { - int ret = eth_pcap_update_mac(rx_queues->queue[0].name, + ret = eth_pcap_update_mac(rx_queues->queue[0].name, eth_dev, vdev->device.numa_node); if (ret == 0) internals->phy_mac = 1; -- 2.26.2