mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 10:14:23 +08:00
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: Vaughan Cao <vaughan.cao@oracle.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
e79df31c60
commit
ecef115d45
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user