]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Refactor pdev_sort_resources() & __dev_sort_resources()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 16 Dec 2024 17:56:20 +0000 (19:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Feb 2025 21:40:53 +0000 (15:40 -0600)
commit0aa089cdde945d19ab2e51a8e60a129e9944d312
tree7b20cf7df468cc1fd7d931840e69bea1a6b28410
parent22fb2eda5478f55c8750eb76b7656d2c90de4b39
PCI: Refactor pdev_sort_resources() & __dev_sort_resources()

Reduce level of call nesting by calling pdev_sort_resources() directly
and by moving the tests done inside __dev_sort_resources() into
pdev_resources_assignable() helper.

Link: https://lore.kernel.org/r/20241216175632.4175-14-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Xiaochun Lee <lixc17@lenovo.com>
drivers/pci/setup-bus.c