Skip to content

Commit

Permalink
Merge branch 'pci/misc'
Browse files Browse the repository at this point in the history
- Use the for_each_pci_dev() helper instead of open-coding it (Yang
  Yingliang)

* pci/misc:
  PCI/P2PDMA: Use for_each_pci_dev() helper
  • Loading branch information
Bjorn Helgaas committed Oct 5, 2022
2 parents 14868d7 + e01bae1 commit 17fc2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/p2pdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 17fc2a3

Please sign in to comment.