]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iommu/vt-d: Simplify iommu check in domain_remove_one_dev_info()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 9 Mar 2014 20:52:37 +0000 (13:52 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:06:51 +0000 (14:06 +0000)
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>
drivers/iommu/intel-iommu.c

index 8303f256fe84181ccc538bdf1486f46c69a13808..dc322d0238a07bc36b90c213a214090d44387f3f 100644 (file)
@@ -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;
        }