aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Schnelle <[email protected]>2023-03-06 16:10:13 +0100
committerVasily Gorbik <[email protected]>2023-03-13 09:16:43 +0100
commitb881208dcdae311734f172d61cf9ae6fcb108389 (patch)
treebc1bb0ef942814796a8cc6e7d3b464d43ceb02ee
parentae83707f39e1b8f2a15af3868bba25ce4fa93364 (diff)
s390/pci: remove redundant pci_bus_add_devices() on new bus
The pci_bus_add_devices() call in zpci_bus_create_pci_bus() is without function since at this point no device could have been added to the freshly created PCI bus. Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Niklas Schnelle <[email protected]> Reviewed-by: Matthew Rosato <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vasily Gorbik <[email protected]>
-rw-r--r--arch/s390/pci/pci_bus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/pci/pci_bus.c b/arch/s390/pci/pci_bus.c
index 465399dc4a53..df2e27fbd376 100644
--- a/arch/s390/pci/pci_bus.c
+++ b/arch/s390/pci/pci_bus.c
@@ -212,7 +212,6 @@ static int zpci_bus_create_pci_bus(struct zpci_bus *zbus, struct zpci_dev *fr, s
}
zbus->bus = bus;
- pci_bus_add_devices(bus);
return 0;
}