Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3470724pxb; Wed, 13 Oct 2021 06:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+MSH1rpcNMq/UsHTWT6J1Pc2MyQuZ/vi9XTdtVSfcfkQBEp2ZDxLZ5CcIkYvR+jxHtiWG X-Received: by 2002:a17:906:354a:: with SMTP id s10mr42527914eja.475.1634132669787; Wed, 13 Oct 2021 06:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634132669; cv=none; d=google.com; s=arc-20160816; b=Lih/WceUaLsMCL7CWDoy13uzKxzzZlQJADLpOS5iGOTGXtwM2tpuQRcAbnWECJwwL5 hci/WSnYXnQCWnaaIpq9g6CQiVBWs83m8avoPrf+qFQiuMfN0gt/MxT7WH5LsDnQPZc3 US2Y9LasBxX9RfixOcYntjXqn7Sz1rhxAZuZxa6oNtkx9I8OpidFtRsqHaTE5sTMib8n VR6FzvWGiqbPhLOuqIAyPp9iPB4ZFP0ullc8w5tyhQUOBLwqAAgCuljp50HO1J4LSTq3 VaQWXTeqzh5RslTkVSN9Hy3mQV79S87tTAbKpjrRmdcWmGsE5K5aQa3t2Yx8diClbgEb sShA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IWh+q3jntSfBZTm3Gn1WntHdjygFIj3unssYTrFShdg=; b=b7nQpruQ25UtUtgwpf/TjPORI6Vxf+lwvF32LPNRZDR9uinYEABZzvVlnEaaDEmz9C LBSsSBIdvCv6flHCGuTSrQIjOJDlsOz9vnK3kLP4b9yXTZWxMxOmV2Hx+orY+RlyHU7U fJnxsBVIZq5xI1OdtA4mRuEToY4SNV1qnN5W+Hulj8+gkUjpDFE9hCW2Qiuq5WehkT80 wrD4eKTFIpAtJQ3v/uMFgjeX6+3i6IFWzhHEdNW2dPZZIIDCZTjW1/JVE8eV13e3s+I0 E6MntLRcbHM93xagM5fpflxRrlBjD9TEH2y9qmEsK+0Q1fXwVH3t5UboqndVPvc2y2jd N9yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo24si20349786ejb.197.2021.10.13.06.44.05; Wed, 13 Oct 2021 06:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234907AbhJMNnW (ORCPT + 99 others); Wed, 13 Oct 2021 09:43:22 -0400 Received: from foss.arm.com ([217.140.110.172]:39458 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234903AbhJMNnV (ORCPT ); Wed, 13 Oct 2021 09:43:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D8E5A1FB; Wed, 13 Oct 2021 06:41:17 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A2C993F694; Wed, 13 Oct 2021 06:41:16 -0700 (PDT) Date: Wed, 13 Oct 2021 14:41:14 +0100 From: Lorenzo Pieralisi To: Colin King Cc: Alyssa Rosenzweig , Marc Zyngier , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] PCI: apple: Remove redundant initialization of pointer port_pdev Message-ID: <20211013134114.GC11036@lpieralisi> References: <20211012133235.260534-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211012133235.260534-1-colin.king@canonical.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 02:32:35PM +0100, Colin King wrote: > From: Colin Ian King > > The pointer port_pdev is being initialized with a value that is never > read, it is being updated later on. The assignment is redundant and > can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > drivers/pci/controller/pcie-apple.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Squashed into the commit it is fixing. Thanks ! Lorenzo > diff --git a/drivers/pci/controller/pcie-apple.c b/drivers/pci/controller/pcie-apple.c > index b4db7a065553..19fd2d38aaab 100644 > --- a/drivers/pci/controller/pcie-apple.c > +++ b/drivers/pci/controller/pcie-apple.c > @@ -634,7 +634,7 @@ static struct apple_pcie_port *apple_pcie_get_port(struct pci_dev *pdev) > { > struct pci_config_window *cfg = pdev->sysdata; > struct apple_pcie *pcie = cfg->priv; > - struct pci_dev *port_pdev = pdev; > + struct pci_dev *port_pdev; > struct apple_pcie_port *port; > > /* Find the root port this device is on */ > -- > 2.32.0 >