PCI: Fix whitespace and indentation
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 5 Sep 2022 08:02:31 +0000 (11:02 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 21 Sep 2022 19:50:35 +0000 (14:50 -0500)
Drop two empty lines from pci_scan_child_bus_extend() and correct
indentation in pci_bridge_distribute_available_resources() to better
follow the kernel coding style.

No functional impact.

Link: https://lore.kernel.org/r/20220905080232.36087-6-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
drivers/pci/setup-bus.c

index 86130926a74f0b5e69f1534a02cd8b8ff7ef6421..8f25deb6b763ddec853502accc523b59d3650086 100644 (file)
@@ -2930,7 +2930,6 @@ static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus,
                unsigned int buses = 0;
 
                if (!hotplug_bridges && normal_bridges == 1) {
-
                        /*
                         * There is only one bridge on the bus (upstream
                         * port) so it gets all available buses which it
@@ -2939,7 +2938,6 @@ static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus,
                         */
                        buses = available_buses;
                } else if (dev->is_hotplug_bridge) {
-
                        /*
                         * Distribute the extra buses between hotplug
                         * bridges if any.
index df9fc974b3133066b6d0d13341009d3c52c478b4..dc6a30ee6edfba2eb78f8c268b042bb5ed4d7846 100644 (file)
@@ -1919,7 +1919,7 @@ static void pci_bus_distribute_available_resources(struct pci_bus *bus,
 }
 
 static void pci_bridge_distribute_available_resources(struct pci_dev *bridge,
-                                                    struct list_head *add_list)
+                                                     struct list_head *add_list)
 {
        struct resource available_io, available_mmio, available_mmio_pref;