Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1681404pxf; Fri, 26 Mar 2021 12:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxLJXknsp59+3nCPcEyTz3hb1rCdN3EKzBK+9Ha2KEVMH+3ikb4sPS0GXG+RdHzmdNT2A5 X-Received: by 2002:a17:906:33d9:: with SMTP id w25mr17782719eja.413.1616786066341; Fri, 26 Mar 2021 12:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616786066; cv=none; d=google.com; s=arc-20160816; b=CKrxdGeMMXDN3f7RxRKFBaH6QcY3tZon/v8OzBiUZuCjtk+4IG+qojmymkggKQaJ7M JdweFZbPmLNS2kjv3vPRwAd2tOJqnwAC7l/JB6kkhYSsZ2fPBoSPwpK20J1z8WN1vifw BUTrd8ISa0C6J6vvEDbehxbpojFMCMADbIHTkWxcoZsE5gMArhvxozIJhXD/Wk3w8vLY ePQ+dG6ufwYmIqAuw1wiFgkgm5G/Jo92TD5Dq9dFfF0GSCR7VgW8v8LJQf5qhoH0Lvea Xd2QZ58wsGJL04XHawn6GdVWX0LkGx5//z57uThfHgmc0/jHOOKh7UYcIAWTUFFSYCWD HbSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=64M6dTMvkSj7X5XPj7LjzIQ1nIhjlGlTBh1kwvL183I=; b=PfSmlskra5auxfT+gUpYRhVcqNl08G8kz8axHKVtQBIoMGaalI68B2hny4TIPXsJtm mo19aY476chhLG2kIqo8sf5Tgc+ekLit0dgq162vxgyAcwDkwhQrHeDrROH85FdDihDI BZOSVkw+7RvT+akmrX9sgsHZdO4zaZUVDIDre5+z3IXLiMTYRK7cepMwahAkweTZ5v6K s28uXJSYkvptTitlBZmY/YNA66DyEUuUAtssvOWl0RbInpYTG2Oq3muRy51v00yk+1L9 HOv1xpG2e+k6ABU5Cu+1cGSjxAvWd4gs4oulOQuZbnY9X+LgnucB8SeZyo2nLtOc+XF/ wThA== 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=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si7343029edq.276.2021.03.26.12.14.03; Fri, 26 Mar 2021 12:14:26 -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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231233AbhCZTJr (ORCPT + 99 others); Fri, 26 Mar 2021 15:09:47 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47917 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbhCZTJO (ORCPT ); Fri, 26 Mar 2021 15:09:14 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lPrpW-0004sI-18; Fri, 26 Mar 2021 19:09:10 +0000 From: Colin King To: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , linux-pci@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: endpoint: remove redundant initialization of pointer dev Date: Fri, 26 Mar 2021 19:09:09 +0000 Message-Id: <20210326190909.622369-1-colin.king@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The pointer dev is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/pci/endpoint/pci-epf-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c index 7646c8660d42..e9289d10f822 100644 --- a/drivers/pci/endpoint/pci-epf-core.c +++ b/drivers/pci/endpoint/pci-epf-core.c @@ -113,7 +113,7 @@ EXPORT_SYMBOL_GPL(pci_epf_bind); void pci_epf_free_space(struct pci_epf *epf, void *addr, enum pci_barno bar, enum pci_epc_interface_type type) { - struct device *dev = epf->epc->dev.parent; + struct device *dev; struct pci_epf_bar *epf_bar; struct pci_epc *epc; -- 2.30.2