summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2020-05-16 09:21:00 +0300
committerJoerg Roedel <jroedel@suse.de>2020-05-18 16:37:26 +0300
commit7482fd59259a7f23e191c14b8a126a0f6981b3e4 (patch)
tree6afddaebbb561a8aca068592f3af37bf268f44ee /drivers/iommu
parent81ebd91a436b87158b2ab6c71a51395316b147dc (diff)
downloadlinux-7482fd59259a7f23e191c14b8a126a0f6981b3e4.tar.xz
iommu/vt-d: Remove duplicated check in intel_svm_bind_mm()
The info and info->pasid_support have already been checked in previous intel_iommu_enable_pasid() call. No need to check again. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20200516062101.29541-18-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/intel-svm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index 42f916b9667e..11366dc91971 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -501,11 +501,6 @@ intel_svm_bind_mm(struct device *dev, int flags, struct svm_dev_ops *ops,
}
info = get_domain_info(dev);
- if (!info || !info->pasid_supported) {
- kfree(sdev);
- goto out;
- }
-
sdev->did = FLPT_DEFAULT_DID;
sdev->sid = PCI_DEVID(info->bus, info->devfn);
if (info->ats_enabled) {