Merge branch 'pci/misc'

- Use the for_each_pci_dev() helper instead of open-coding it (Yang
  Yingliang)

* pci/misc:
  PCI/P2PDMA: Use for_each_pci_dev() helper
This commit is contained in:
Bjorn Helgaas 2022-10-05 17:32:58 -05:00
commit 17fc2a3f41
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ struct pci_dev *pci_p2pmem_find_many(struct device **clients, int num_clients)
if (!closest_pdevs)
return NULL;
while ((pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pdev))) {
for_each_pci_dev(pdev) {
if (!pci_has_p2pmem(pdev))
continue;