Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2432291pxb; Tue, 12 Oct 2021 06:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+FbITEgUsjDoOJcOMPxcySbLDQtTc4zfG3DvF/HN8tCSpaOe1eaxlF75/xEQILe2w4f+t X-Received: by 2002:a63:d14:: with SMTP id c20mr23171556pgl.118.1634045672331; Tue, 12 Oct 2021 06:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634045672; cv=none; d=google.com; s=arc-20160816; b=wcwXADybcXQoOIWE5QSkBIrUsro+i48EYJfN+sP7/a0kZ6MExotsqrZRUUhqlOu3zz 2yQ2PO6eGGbo0wPjVYzFX1jlo9HfBEYEuB6NvbNaGaJ26l0QA4nkFHstPUP2TgJvOC7m 9FY8lt9UrOJuR+wGCm8tzM9xEDOnfEHC++85SbrSt4YSkglOdCgDjwCfqUewiFH057ns rXTEuOz86sadnKHDTFiqP1o/qdC//dxeWPUzj81lfy2Z7QA1ETtMYP6rgZkozhqTWAye yBZzrbT/8ZujRd9y22qZQzFi9OT3VWWnEtOmuS5ybygJ/AfRZiBSi7nwVz81kRsrLFTE FefA== 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:dkim-signature; bh=dKXMSStMoPxCZm0p9/uoqNBAaXNVf2iSmUkWehBtigY=; b=n+j7h0lPNAh4x1Eq8lcssOeFoHRvRtSk6ilvLMYewiFBzbqNulbvZP5tIkoAMC5QeE KnySbx6SlO4WT/03uhGCISZ57eGGgzo8neofZny363PVwNPOQ3TgIc237X1JIW0+CFDl zhKJF/gZyL1G63WzJ6MkzSBRMCP56+HyIEcgErzytOTPsA0WxmKNsOEYkG288r0xQdIA JzqLwL+RA/Wi76eRNA5ekUqGJPYHv9msaSyTTi4FK8PiqLxruInKcdNihwGXRM5M2z1v 1Wcp8qLWGBPmfbS8lJuXgDN2OqXXPQtc9jByIbU4IeBkN2Oc/9wA9PKcEmfTFfRwxf0g bc0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="QIjK1rg/"; 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 f7si16094421plg.216.2021.10.12.06.34.19; Tue, 12 Oct 2021 06:34:32 -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="QIjK1rg/"; 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 S236927AbhJLNel (ORCPT + 99 others); Tue, 12 Oct 2021 09:34:41 -0400 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]:33924 "EHLO smtp-relay-canonical-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236655AbhJLNej (ORCPT ); Tue, 12 Oct 2021 09:34:39 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 5DB313FFE2; Tue, 12 Oct 2021 13:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634045556; bh=dKXMSStMoPxCZm0p9/uoqNBAaXNVf2iSmUkWehBtigY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=QIjK1rg/hK1MvI48l18670bu0Ps4BFgRAkdAP2oTPfC/vS6XsYo1VRgNvWos6zAhk luCBLGbFIDOX9+y2jZU+ycqVywMhrvfaOCRw/ZWjtVxqJOQMX824A0j0koPAnagAWZ OC/uoDfRYTrWZCBmeGJNoLCqpWpEsj9xy0UUrFUKkgD7Ca3bDZAjbFhpTeiL0w8Z8M wUMXDmAWgXw4HpUpKt9jBtXo/0jmu58NW7Cz5urUwrJap/ZgWF3EtIMlHQHaky9EYm /JB3vLoDfZjcZ4Bp6NDEYUys7kmrPVD7YiV4MrvNv+3EcTULr8m+I3MS52h3HhF1ys 362t2VO1inoUg== From: Colin King To: Alyssa Rosenzweig , Marc Zyngier , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Bjorn Helgaas , linux-pci@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] PCI: apple: Remove redundant initialization of pointer port_pdev Date: Tue, 12 Oct 2021 14:32:35 +0100 Message-Id: <20211012133235.260534-1-colin.king@canonical.com> X-Mailer: git-send-email 2.32.0 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 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(-) 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