diff options
author | Pali Rohár <pali@kernel.org> | 2022-01-04 16:35:24 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2022-02-03 11:54:05 +0100 |
commit | 7a02acdb5debff8cbee4a91efbba084f7b26a680 (patch) | |
tree | 8dcf065a3e46c5e8338f1317a12536d61e6be356 /drivers/pci/controller/pci-mvebu.c | |
parent | PCI: mvebu: Add help string for CONFIG_PCI_MVEBU option (diff) | |
download | linux-7a02acdb5debff8cbee4a91efbba084f7b26a680.tar.xz linux-7a02acdb5debff8cbee4a91efbba084f7b26a680.zip |
PCI: mvebu: Remove duplicate nports assignment
Member pcie->nports is initialized to correct value before the previous
for-loop. There is not need to initialize it more times.
Link: https://lore.kernel.org/r/20220104153529.31647-7-pali@kernel.org
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'drivers/pci/controller/pci-mvebu.c')
-rw-r--r-- | drivers/pci/controller/pci-mvebu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c index 7156ddcfb1e0..a7eaa58483dd 100644 --- a/drivers/pci/controller/pci-mvebu.c +++ b/drivers/pci/controller/pci-mvebu.c @@ -1332,8 +1332,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev) mvebu_pcie_set_local_dev_nr(port, 0); } - pcie->nports = i; - bridge->sysdata = pcie; bridge->ops = &mvebu_pcie_ops; bridge->align_resource = mvebu_pcie_align_resource; |