From: Shawn Guo Date: Sun, 1 Jul 2018 03:54:45 +0000 (+0800) Subject: PCI: keystone: Drop unnecessary root_bus_nr setting X-Git-Tag: v4.19-rc1~123^2~5^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe;p=thirdparty%2Fkernel%2Flinux.git PCI: keystone: Drop unnecessary root_bus_nr setting Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo Signed-off-by: Lorenzo Pieralisi Cc: Murali Karicheri --- diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c index 3722a5f31e5e6..e88bd221fffea 100644 --- a/drivers/pci/controller/dwc/pci-keystone.c +++ b/drivers/pci/controller/dwc/pci-keystone.c @@ -347,7 +347,6 @@ static int __init ks_add_pcie_port(struct keystone_pcie *ks_pcie, } } - pp->root_bus_nr = -1; pp->ops = &keystone_pcie_host_ops; ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np); if (ret) {