diff options
| author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2025-12-19 20:40:22 +0300 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-01-28 01:36:51 +0300 |
| commit | e112fbb26b66b183d9387017b29e5d0b62986eed (patch) | |
| tree | add0394ff9cb9ca5bd46ae0632ada93653e5c6e3 /include/uapi/linux | |
| parent | 4bee4fc0f4ee1086e498f9d197352237a0232598 (diff) | |
| download | linux-e112fbb26b66b183d9387017b29e5d0b62986eed.tar.xz | |
PCI: Fetch dev_res to local var in __assign_resources_sorted()
__assign_resources_sorted() calls get_res_add_size() and
get_res_add_align(), each walking through the realloc_head list to
relocate the corresponding pci_dev_resource entry.
Fetch the pci_dev_resource entry into a local variable to avoid double
walk.
In addition, reverse logic to reduce indentation level.
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-10-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
