diff mbox series

[6/6,SRU,OEM-5.17/OEM-6.0] PCI: Fix typo in pci_scan_child_bus_extend()

Message ID 20220930082428.142684-7-chris.chiu@canonical.com
State New
Headers show
Series Fix Thunderbolt device hotplug fail when connect via thunderbolt dock | expand

Commit Message

Chris Chiu Sept. 30, 2022, 8:24 a.m. UTC
From: Mika Westerberg <mika.westerberg@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@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(cherry picked from commit 58e011609c4305fc50674c4610cbe8a8c26261f6 linux-next)
Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
---
 drivers/pci/probe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 25a2fa2a5303..30acd613454f 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2961,7 +2961,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,