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

Commit ecef115d authored by Vaughan Cao's avatar Vaughan Cao Committed by Joerg Roedel
Browse files

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: default avatarVaughan Cao <vaughan.cao@oracle.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent e79df31c
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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);
	}