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:
commit
17fc2a3f41
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue