aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2014-03-09 16:52:37 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2014-03-24 10:06:51 -0400
commit8bbc4410129c0919e5943012489427c5e050a63e (patch)
tree74d6f163faed41487f224d2ac9c2449db6aa66a3
parent5a8f40e8c8801a9805bbe60d140ed2b0b3b91d18 (diff)
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,
4056 * owned by this domain, clear this iommu in iommu_bmp 4056 * owned by this domain, clear this iommu in iommu_bmp
4057 * update iommu count and coherency 4057 * update iommu count and coherency
4058 */ 4058 */
4059 if (iommu == device_to_iommu(info->segment, info->bus, 4059 if (info->iommu == iommu)
4060 info->devfn))
4061 found = 1; 4060 found = 1;
4062 } 4061 }
4063 4062