Skip to content

Commit 17d2d67

Browse files
westeribjorn-helgaas
authored andcommitted
PCI: Fix whitespace and indentation
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>
1 parent e96e27f commit 17d2d67

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/pci/probe.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,7 +2930,6 @@ static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus,
29302930
unsigned int buses = 0;
29312931

29322932
if (!hotplug_bridges && normal_bridges == 1) {
2933-
29342933
/*
29352934
* There is only one bridge on the bus (upstream
29362935
* 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,
29392938
*/
29402939
buses = available_buses;
29412940
} else if (dev->is_hotplug_bridge) {
2942-
29432941
/*
29442942
* Distribute the extra buses between hotplug
29452943
* bridges if any.

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ static void pci_bus_distribute_available_resources(struct pci_bus *bus,
19191919
}
19201920

19211921
static void pci_bridge_distribute_available_resources(struct pci_dev *bridge,
1922-
struct list_head *add_list)
1922+
struct list_head *add_list)
19231923
{
19241924
struct resource available_io, available_mmio, available_mmio_pref;
19251925

0 commit comments

Comments
 (0)