Skip to content

Commit

Permalink
iommu/vt-d: Remove duplicated check in intel_svm_bind_mm()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lu Baolu authored and Joerg Roedel committed May 18, 2020
1 parent 81ebd91 commit 7482fd5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/iommu/intel-svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7482fd5

Please sign in to comment.