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

Commit 6c54aabd authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by Joerg Roedel
Browse files

x86/amd-iommu: Use for_each_pci_dev()



Use for_each_pci_dev() to simplify the code.

Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 1c5474a6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2609,8 +2609,7 @@ int __init amd_iommu_init_passthrough(void)

	pt_domain->mode |= PAGE_MODE_NONE;

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

	for_each_pci_dev(dev) {
		if (!check_device(&dev->dev))
			continue;