aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2018-05-28 15:47:55 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-06-04 12:08:06 -0500
commit14fe5951b667872154d753e451dea043050e9006 (patch)
tree642ec0c399b27ca86e4aa0a504b3c6d737bbe637 /drivers/pci/probe.c
parentPCI: Account for all bridges on bus when distributing bus numbers (diff)
downloadlinux-dev-14fe5951b667872154d753e451dea043050e9006.tar.xz
linux-dev-14fe5951b667872154d753e451dea043050e9006.zip
PCI: Move resource distribution for single bridge outside loop
If there is only a single bridge on the bus, we assign all resources to it. Currently this is done as a part of the resource distribution loop but it does not have to be there, and moving it outside actually improves readability because we can then save one indent level in the loop. While there we can add hotplug_bridges == 1 && normal_bridges == 0 to the same block because they are dealt the same way. Suggested-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions