From patchwork Tue Jan 4 15:35:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12703576 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 95ADAC433EF for ; Tue, 4 Jan 2022 15:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ELTsSELHnsSOMK1P/wk8LtlIUqFBpQ4oD36pRZN8jtY=; b=LK9bzwxWBlC/IH sQnaNVTenWyHCfhAuP4C+Tw9YEuprZnS0N/om78JphK9aFcuv7p01NRsingTch3Xf2xQa1ixIEsq0 0AJM4xjOc5UP/vIZoGvVrxJv1kWN77DhN+L3o7+jI6D36WlFxBurHjzsDWWF3eRZ7kQbEYiJdjVl3 iDekGxQybhcpBbj2OFpB4Y5H1ZgRix9EgOQCmzFBQ6yMhx5oLXLkf9TUtxpnW6tX1GrkaX1hu/5rd gYIewBdJ+wZvSs1k6B1lQvwFz2+BEprFvwzkZs1zTpRu2x7p+sCvVkxdqsABt4DbGVHcDOf6ejgo/ hyULpE0+0ZPKvg1hdESQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4ltl-00BxzC-M4; Tue, 04 Jan 2022 15:38:53 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4ltN-00Bxms-1c for linux-arm-kernel@lists.infradead.org; Tue, 04 Jan 2022 15:38:31 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C798614DB; Tue, 4 Jan 2022 15:38:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D7EBC36AE9; Tue, 4 Jan 2022 15:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641310708; bh=BAz0sgl9jkfKnkSJVwW7u56anhqkAh5YBXeqtAKyf+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L+SHJXwP5tVS0BcMLd5wYZ78HFBj8s3KajKQIKoD3eIAxi4M4qHSBe5n3s4m4rQeZ GZJ0MyqHyTz+X9jBYgheZmg4mp9EzzkjabvbmiCsSkGMcwAHBw7mzthGezdot9mPh7 7SVqMRq4dquPz7B85u6Vf8DlWpT0fYV4sxzTnOcx72hjdyw5StSsUFWxDxorigEjw1 aLM6p2+QMiXifJMP/9E4wlvez2tw7JI2zBlkfwrKAPYd4VU8JFSfnF7cG6/t+vQU6w B+RIhOmUjAMO9X2/cXmGPLJmLBeqbS+x78jGq/r/Cm3cTTL1ERkPL0/bcPIubg5G6G GCtrA3pB/4DDQ== Received: by pali.im (Postfix) id D76AC96B; Tue, 4 Jan 2022 16:38:27 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Thomas Petazzoni , Lorenzo Pieralisi , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , =?utf-8?q?Marek_Beh=C3=BAn?= Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/11] PCI: mvebu: Remove duplicate nports assignment Date: Tue, 4 Jan 2022 16:35:24 +0100 Message-Id: <20220104153529.31647-7-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220104153529.31647-1-pali@kernel.org> References: <20211221141455.30011-1-pali@kernel.org> <20220104153529.31647-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_073829_147504_516DE3AC X-CRM114-Status: GOOD ( 12.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Member pcie->nports is initialized to correct value before the previous for-loop. There is not need to initialize it more times. Signed-off-by: Pali Rohár Acked-by: Thomas Petazzoni --- drivers/pci/controller/pci-mvebu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c index 2e10ade660a1..016f709b3067 100644 --- a/drivers/pci/controller/pci-mvebu.c +++ b/drivers/pci/controller/pci-mvebu.c @@ -1337,8 +1337,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev) mvebu_pcie_set_local_bus_nr(port, 0); } - pcie->nports = i; - bridge->sysdata = pcie; bridge->ops = &mvebu_pcie_ops; bridge->align_resource = mvebu_pcie_align_resource;