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

Commit 8bbc4410 authored by David Woodhouse's avatar David Woodhouse
Browse files

iommu/vt-d: Simplify iommu check in domain_remove_one_dev_info()



Now we store the iommu in the device_domain_info, we don't need to do a
lookup.

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 5a8f40e8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4056,8 +4056,7 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain,
		 * owned by this domain, clear this iommu in iommu_bmp
		 * update iommu count and coherency
		 */
		if (iommu == device_to_iommu(info->segment, info->bus,
					    info->devfn))
		if (info->iommu == iommu)
			found = 1;
	}