Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3507774pxb; Wed, 13 Oct 2021 07:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRwwm0H8JOhIcHl1iafGCJdQlEY0UfuOckyh2GS3p4CHu0vVz5lhypnCnjpJW7KUTcPG8O X-Received: by 2002:aa7:dbcf:: with SMTP id v15mr10039757edt.243.1634135098913; Wed, 13 Oct 2021 07:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634135098; cv=none; d=google.com; s=arc-20160816; b=Ujj8BQzJSU7DBf3LLt8pNHI/KUeXKDSsjeuK+eo2uGepGU7QZcb60mLNqccUPkH4W9 WFUMXUTeNj3DXgjmx3LY/bXgSbLuyR/hJqsGLz6bLcSPKKWisWn/+U9nsrWMdhTemxfE m8iYOcP8eB6a+7Y8dOkUZCtistlyMb4cm2VOQiDriQraHFwfkjb/bj9LgbWySmZ7Jj1u LcyL6kaQMiIubnijh9iBZmyz6dz/XW1gZZYLnmnyk2TuImOxxIAPmCar/3qynE8r/m+8 cnLAtv6LhVtrSmQUlXNTLHjnjbXgax4YsV9cXDZmURf+3prE702thBWIXtO4mtwEXFwj wRnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=F2Aeq4CGeeeQ7RzlmcFZtrjZ5QnGLtWz/nVBx/bUwwc=; b=By3hspOzsoB97CVeGY7+M2iSaUC6QRv+BQ8QmaHBWlhnINDWko2G1dIyX4+yNpuXm2 S6jARtY+6T84qnu+mAVJOBMhBkRi10TrMfdX67/9A6P86hiVZRMpXtQDS20kRBxC4SHM 78B9xMOSHonvGPWCnyXEN5h5yPvCU8v2oiC6FGPs3DaFZ6gLLIoK6xwB2zZHPTFMtpcG TwuQIfoRgmmDt4QBcUNPLJTVeShsCN/umsX61HObKOgQzlZW/NEafiBZyXaKNW1y2vST hxtFDJNRC8xZ8XcMJ8F2yYq/Sclkq+O7oyE2KV13wIn+Th6rSPXHXVENccTEuU0hznj7 XtYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=RB3tvbel; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t20si20084870ejd.528.2021.10.13.07.24.34; Wed, 13 Oct 2021 07:24:58 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=RB3tvbel; 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=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235927AbhJMOYa (ORCPT + 99 others); Wed, 13 Oct 2021 10:24:30 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:53204 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231664AbhJMOYa (ORCPT ); Wed, 13 Oct 2021 10:24:30 -0400 Received: from [10.172.193.212] (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 72F1740600; Wed, 13 Oct 2021 14:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634134944; bh=F2Aeq4CGeeeQ7RzlmcFZtrjZ5QnGLtWz/nVBx/bUwwc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RB3tvbelMWDTEOZgX7CRrPNrtMkBxwV7Kq7SPz4QULIliM46O/VczxpIeReue0K6I CrYjoxKYZpAUQYrnx7xfE1fu2pLNOqF8c/80zQPsfHFOZQhETQe2lNqn3OC48IYSQn pCZod9pbn38K69sLe/mg5WUd5zwVLjIOo2hjAIT5hc+mNyLRq2igoNVUSpBgFbQ5k4 dNmUL7EvKQ7DhRDqa1KQZtceQ6uIS5oXYzPdmiQa5afeAZuiSUx3OMWVez8HMlepsP PMvGPkQ3pDvt630MpW/nqgO3F9vPgut0P1ZAV9f/imyEKqGnAbmBLW8XvgpYzEoYmZ 9wyz/U6UBQVjQ== Message-ID: <7fb08233-efc9-b0bd-b234-084e52878036@canonical.com> Date: Wed, 13 Oct 2021 15:22:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH][next] PCI: apple: Remove redundant initialization of pointer port_pdev Content-Language: en-US To: Lorenzo Pieralisi Cc: Alyssa Rosenzweig , Marc Zyngier , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211012133235.260534-1-colin.king@canonical.com> <20211013134114.GC11036@lpieralisi> From: Colin Ian King In-Reply-To: <20211013134114.GC11036@lpieralisi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/2021 14:41, Lorenzo Pieralisi wrote: > 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. Much appreciated. > 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 >>