提交 6c54aabd 编写于 作者: K Kulikov Vasiliy 提交者: Joerg Roedel

x86/amd-iommu: Use for_each_pci_dev()

Use for_each_pci_dev() to simplify the code.
Signed-off-by: NKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 1c5474a6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册