PCI: mvebu: Remove duplicate nports assignment
authorPali Rohár <pali@kernel.org>
Tue, 4 Jan 2022 15:35:24 +0000 (16:35 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 3 Feb 2022 10:54:05 +0000 (10:54 +0000)
commit7a02acdb5debff8cbee4a91efbba084f7b26a680
tree8dcf065a3e46c5e8338f1317a12536d61e6be356
parent7f09a4b195a94cda747ff87b56834907844b326c
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>
drivers/pci/controller/pci-mvebu.c