diff options
author | Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au> | 2019-06-22 20:13:50 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-02 21:56:54 +0300 |
commit | 6a381ea694c9da31ba8741c42a7f1b206c156841 (patch) | |
tree | 96b2edcbdb5b28dad0abb3f23f1cb2be3463769a /init | |
parent | 5c6bcc344b18dfb3b0ddcca6c26f6858879f73bf (diff) | |
download | linux-6a381ea694c9da31ba8741c42a7f1b206c156841.tar.xz |
PCI: Skip resource distribution when no hotplug bridges
If "hotplug_bridges == 0", "!dev->is_hotplug_bridge" is always true, so the
loop that divides the remaining resources among hotplug-capable bridges
does nothing.
Check for "hotplug_bridges == 0" earlier, so we don't even have to compute
the amount of remaining resources. No functional change intended.
Link: https://lore.kernel.org/r/PS2P216MB0642C7A485649D2D787A1C6F80000@PS2P216MB0642.KORP216.PROD.OUTLOOK.COM
Link: https://lore.kernel.org/r/20190622210310.180905-3-helgaas@kernel.org
Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions