summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2014-03-10 00:52:37 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2014-03-24 18:06:51 +0400
commit8bbc4410129c0919e5943012489427c5e050a63e (patch)
tree74d6f163faed41487f224d2ac9c2449db6aa66a3
parent5a8f40e8c8801a9805bbe60d140ed2b0b3b91d18 (diff)
downloadlinux-8bbc4410129c0919e5943012489427c5e050a63e.tar.xz
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: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--drivers/iommu/intel-iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 8303f256fe84..dc322d0238a0 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -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;
}