Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18c69d3 authored by Chris Wright's avatar Chris Wright Committed by Joerg Roedel
Browse files

x86/amd-iommu: use for_each_pci_dev



Replace open coded version with for_each_pci_dev

Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 8f9f55e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2187,7 +2187,7 @@ static void prealloc_protection_domains(void)
	struct dma_ops_domain *dma_dom;
	u16 devid;

	while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
	for_each_pci_dev(dev) {

		/* Do we handle this device? */
		if (!check_device(&dev->dev))