Commit 34678c9
PCI: Use res_to_dev_res() in reassign_resources_sorted()
[ Upstream commit 4bee4fc ]
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
Stable-dep-of: 1ee4716 ("PCI: Fix premature removal from realloc_head list during resource assignment")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f176c47 commit 34678c9
1 file changed
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
421 | 420 | | |
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
428 | | - | |
429 | | - | |
430 | 427 | | |
431 | 428 | | |
432 | 429 | | |
| |||
440 | 437 | | |
441 | 438 | | |
442 | 439 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
| 440 | + | |
450 | 441 | | |
451 | 442 | | |
452 | 443 | | |
| |||
0 commit comments