summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2022-10-06 00:32:58 +0200
committerBjorn Helgaas <bhelgaas@google.com>2022-10-06 00:32:58 +0200
commit17fc2a3f41b37596bbcf1e6b765f0620a8f34c9a (patch)
tree9bca3ca3adedcdf55f271d01132d6ba4b72d8434 /drivers
parentMerge branch 'remotes/lorenzo/pci/misc' (diff)
parentPCI/P2PDMA: Use for_each_pci_dev() helper (diff)
downloadlinux-17fc2a3f41b37596bbcf1e6b765f0620a8f34c9a.tar.xz
linux-17fc2a3f41b37596bbcf1e6b765f0620a8f34c9a.zip
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/p2pdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
index 4496a7c5c478..88dc66ee1c46 100644
--- a/drivers/pci/p2pdma.c
+++ b/drivers/pci/p2pdma.c
@@ -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;