Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2967811pxb; Tue, 12 Oct 2021 17:50:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB/C4GFdbdqcbSg4Swtug3g3LmtP+DZRF/bGn5T2gapDMkdCENdilRSq2esOp1BjVyjl2k X-Received: by 2002:a17:907:9694:: with SMTP id hd20mr2068032ejc.550.1634086234689; Tue, 12 Oct 2021 17:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634086234; cv=none; d=google.com; s=arc-20160816; b=UEFS138HdFFN3HFWFxuTtcp9AsN9fEtZT/yjyFZnOch/1sGxagjhWkOfl5xjNBQAGs xsE1s7Isnt7eUgXp5KecQHS56Z3RGatm0nxs+Xx109rxN6WtYpR59fPo5ViwJpfpwjOW eSdmiEG14fjLxFiNDw7USItZ6pV/cIn3YOZkdbe/efR5JjlnahPO2gO0gD3pkmeyuUH/ djpqTERHnxmAe4QlZgQR99wpD0Oa0rkV+3ObVPVTD9Q+BCxN9J4pzTpWQhGW/3ZwUJND xCthtdFVp6GhziJAj6NViuZjeb2fiiM0XaxVdbsiyGEfmsHmPps5/SmWEnALdv/xgGmB +tYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Cww5CWiG2lAFWq3mC6EgABYlReMWnDxQ5zuCkCa+u88=; b=W3MzT6mP7TjubNZBBUnjoyPmI+MAjr1t2teUVS7q9NSY8yi9dIatn/nm6aItZwz0wt 6izZkYRtai/PJb3A/BAAsEDIcUdn3yFuZI/JZq/BwfZJS7Q9ra9RX0QUF+UOKf/sG+do v+PQHMmDaQELMkoC9LRFEAHvd29fl+S8oCwzVXGcM7J3/rSDJ3t535NuqF73LP3QTpX/ 1mKIcDRP4cKPpGyXn98K5CNPZHVKljAepUA3s2crRuVlRl3FmnvROc1bRNmXiuHJYFMY Mf6WY81VQo4+8OzxEBARMHp2yQwSR1DAW1flmEE97EvMmrMMicvtEK6GwelAlv6h1lEB Q1xQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si14474725edc.436.2021.10.12.17.50.08; Tue, 12 Oct 2021 17:50:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235251AbhJMAta (ORCPT + 99 others); Tue, 12 Oct 2021 20:49:30 -0400 Received: from mail-lf1-f43.google.com ([209.85.167.43]:38492 "EHLO mail-lf1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231672AbhJMAta (ORCPT ); Tue, 12 Oct 2021 20:49:30 -0400 Received: by mail-lf1-f43.google.com with SMTP id x27so4142202lfu.5; Tue, 12 Oct 2021 17:47:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Cww5CWiG2lAFWq3mC6EgABYlReMWnDxQ5zuCkCa+u88=; b=FwZDLBBaEBvmtprzN7FTfWsj0yM4kgLHQuF/lm/ICZQ6uXKYreg4WrbQtUFDfQOUwT vdDZvEvaCoi0bOCV4d6INBLNjaUs+qwIZYwn1/RHJr6sKC425Ffk+Ye0Xe/MmTu+qen1 PGTjpF8LPF5MOwUrCJxdIYxz0RjrhUOK2aFHzk2hA7o/0228CPbOq6tbeq83pHoKKsz4 xCLhb2H8AK2oVCA4ezaVtKlSYtHWqeAFrZv3Mzd5Yx4jtq7o+9Umx8kHCLKzKBWPsac1 q1kmyBEZq701MKPlnwzycKv4mTc+o36BdQHBjsryskjJQ50qPN7o5CZ5RLekbYH1zce+ UTng== X-Gm-Message-State: AOAM530DZc1vVYePuspMzucxH0rPAHNXRoFk2/vUoVlgHgxOkgDPKi/y pcRY8UO4onrIuznjZFvx726MmFGVQkxySA== X-Received: by 2002:a05:6512:3d29:: with SMTP id d41mr25000318lfv.481.1634086046368; Tue, 12 Oct 2021 17:47:26 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id t22sm1268467ljj.61.2021.10.12.17.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 17:47:25 -0700 (PDT) Date: Wed, 13 Oct 2021 02:47:24 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Colin King Cc: Alyssa Rosenzweig , Marc Zyngier , Lorenzo Pieralisi , Rob Herring , 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: References: <20211012133235.260534-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211012133235.260534-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin! > 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; Thank you! Reviewed-by: Krzysztof WilczyƄski Krzysztof