提交 ecef115d 编写于 作者: V Vaughan Cao 提交者: Joerg Roedel

iommu/amd: Remove duplicate checking code

amd_iommu_rlookup_table[devid] != NULL is already guaranteed
by check_device called before, it's fine to attach device at
this point.
Signed-off-by: NVaughan Cao <vaughan.cao@oracle.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 e79df31c
......@@ -3514,12 +3514,6 @@ int __init amd_iommu_init_passthrough(void)
dev_data = get_dev_data(&dev->dev);
dev_data->passthrough = true;
devid = get_device_id(&dev->dev);
iommu = amd_iommu_rlookup_table[devid];
if (!iommu)
continue;
attach_device(&dev->dev, pt_domain);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册