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 81318A04DD for ; Wed, 18 Nov 2020 15:12:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6BFE5C916; Wed, 18 Nov 2020 15:12:09 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id 4D9A7C914 for ; Wed, 18 Nov 2020 15:12:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605708725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b8h+jqcitpIjnnrXkS+uxHuCaQ0WTphHThCFhEFU3BQ=; b=XM3GM3YNq3bfH+B4SU19U1YIvSfIaxYcNyd93xAs721XQGYJ/aaObZwihA/DeA4eCEMPpT b4N8TGSzahUclRBZ9s+nVCISqrVAakLar5SmhY3HV8i6jz2eE0+Ed3QEyfgh1FtCth8lIK mDync0BSN3N3fzCUyHBRy1tw8SJCcuA= Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-33-uoIJIZafO5Km73kHM0lrvQ-1; Wed, 18 Nov 2020 09:12:01 -0500 X-MC-Unique: uoIJIZafO5Km73kHM0lrvQ-1 Received: by mail-vs1-f72.google.com with SMTP id n26so260801vsp.11 for ; Wed, 18 Nov 2020 06:12:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b8h+jqcitpIjnnrXkS+uxHuCaQ0WTphHThCFhEFU3BQ=; b=Hsfni1VrKcomsA9pJzQt7xIxYNtAtHxZmPpgMnD1AEBckQNWTbgLswv5JO+T9WzHJI CF1+3IdyaAe8X/uZFfky3zGL+2Em3wpPHim1z+FiXk5GC1B08VFQjKSKMLjKfhenoWls W/B0ffFN6ocW2RrL8AjxCMXnCdYftDy+djKkKPDDttYN537YejqxQSkXoPZdGwvAaj+p 5O3E2cGwkS9O7M0wfkYAP7ES80C1Ipu+bS+l27mkVaBHAUY1vRmg+kVg3fTBhSIxF4Sj vbd2FrK6MIRDma6b0b05LNMJRnxYZC2nHQWAJrCNWlAVJjuqqgUMN6NxvoYYAVKwRF+3 ORqA== X-Gm-Message-State: AOAM533+UhCpakhc9MObJhfbS0f7wNfjWId8ri+pSK6sLvbA/jKAismK xhN/RaZWcNpshw38fJrXSDfc4Rjx3/VJrgm/a6V9ypZSYj1oJ1E2Z+qAACM9Qkn7d3whzSp7Z9g va9Vzyw8zGNIlmTyYmNaWw4c= X-Received: by 2002:a67:fd46:: with SMTP id g6mr3254416vsr.27.1605708721290; Wed, 18 Nov 2020 06:12:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyN+53vvWaDczhJn1vMpw+J8q2scKGnFOI0Zl2uPzB5b1o/83ODmp39eUm/cGSDxfEhVgCbxvafjqSGhju11Wo= X-Received: by 2002:a67:fd46:: with SMTP id g6mr3254395vsr.27.1605708721136; Wed, 18 Nov 2020 06:12:01 -0800 (PST) MIME-Version: 1.0 References: <20201117171435.2303641-1-ferruh.yigit@intel.com> <20201118114525.99053-1-ferruh.yigit@intel.com> <20201118114525.99053-6-ferruh.yigit@intel.com> In-Reply-To: <20201118114525.99053-6-ferruh.yigit@intel.com> From: David Marchand Date: Wed, 18 Nov 2020 15:11:49 +0100 Message-ID: To: Ferruh Yigit Cc: Juhamatti Kuusisaari , dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [dpdk-dev] [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" On Wed, Nov 18, 2020 at 12:47 PM Ferruh Yigit wrote: > > '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; It is not used after, why not simply check eth_pcap_update_mac() == 0 ? -- David Marchand