diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-09 13:52:37 -0700 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2014-03-24 14:06:51 +0000 |
commit | 8bbc4410129c0919e5943012489427c5e050a63e (patch) | |
tree | 74d6f163faed41487f224d2ac9c2449db6aa66a3 /drivers/iommu/intel-iommu.c | |
parent | 5a8f40e8c8801a9805bbe60d140ed2b0b3b91d18 (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>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 8303f256fe8..dc322d0238a 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; } |