diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2018-05-28 15:47:55 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-06-04 12:08:06 -0500 |
commit | 14fe5951b667872154d753e451dea043050e9006 (patch) | |
tree | 642ec0c399b27ca86e4aa0a504b3c6d737bbe637 /drivers/pci/probe.c | |
parent | 3374c545c27c5350b954d1ab03c880d5502e5eba (diff) | |
download | lwn-14fe5951b667872154d753e451dea043050e9006.tar.gz lwn-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