[PATCH 6/8] PCI: Fix typo in pci_scan_child_bus_extend()

Timo Aaltonen tjaalton at ubuntu.com
Fri Feb 10 08:50:50 UTC 2023


From: Mika Westerberg <mika.westerberg at linux.intel.com>

BugLink: https://bugs.launchpad.net/bugs/1991366

Should be 'if' not 'of'. Fix this.

Link: https://lore.kernel.org/r/20220905080232.36087-7-mika.westerberg@linux.intel.com
Signed-off-by: Mika Westerberg <mika.westerberg at linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
(cherry picked from commit 58e011609c4305fc50674c4610cbe8a8c26261f6)
Signed-off-by: Timo Aaltonen <timo.aaltonen at canonical.com>
---
 drivers/pci/probe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 3e9914ed4429..a24fa2996da4 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2953,7 +2953,7 @@ static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus,
 	/*
 	 * Make sure a hotplug bridge has at least the minimum requested
 	 * number of buses but allow it to grow up to the maximum available
-	 * bus number of there is room.
+	 * bus number if there is room.
 	 */
 	if (bus->self && bus->self->is_hotplug_bridge) {
 		used_buses = max_t(unsigned int, available_buses,
-- 
2.37.2




More information about the kernel-team mailing list