mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 20:10:50 +07:00
x86/amd-iommu: Use for_each_pci_dev()
Use for_each_pci_dev() to simplify the code. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
1c5474a65b
commit
6c54aabd5e
@ -2609,8 +2609,7 @@ int __init amd_iommu_init_passthrough(void)
|
|||||||
|
|
||||||
pt_domain->mode |= PAGE_MODE_NONE;
|
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))
|
if (!check_device(&dev->dev))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user