]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Use res_to_dev_res() in reassign_resources_sorted()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 19 Dec 2025 17:40:21 +0000 (19:40 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jan 2026 22:36:51 +0000 (16:36 -0600)
commit4bee4fc0f4ee1086e498f9d197352237a0232598
tree96d7713cbe4c7dee72e3d406b8e125255e0402b7
parent5819403a0e5700342aad5c908a4a820950ccf89d
PCI: Use res_to_dev_res() in reassign_resources_sorted()

reassign_resources_sorted() contains a search loop for a particular
resource in the head list. res_to_dev_res() already implements the same
search so use it instead.

Drop unused found_match and dev_res variables.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20251219174036.16738-9-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c