PCI: Fix typo in pci_scan_child_bus_extend()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 5 Sep 2022 08:02:32 +0000 (11:02 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 21 Sep 2022 19:50:35 +0000 (14:50 -0500)
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>
drivers/pci/probe.c

index 8f25deb6b763ddec853502accc523b59d3650086..b66fa42c4b1fa21546f60514fcc64107528b4e82 100644 (file)
@@ -2956,7 +2956,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,