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

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
...@@ -4056,8 +4056,7 @@ static void domain_remove_one_dev_info(struct dmar_domain *domain, ...@@ -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 * owned by this domain, clear this iommu in iommu_bmp
* update iommu count and coherency * update iommu count and coherency
*/ */
if (iommu == device_to_iommu(info->segment, info->bus, if (info->iommu == iommu)
info->devfn))
found = 1; found = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment