Skip to content

Commit 7482fd5

Browse files
LuBaolujoergroedel
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 81ebd91 commit 7482fd5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/iommu/intel-svm.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,6 @@ intel_svm_bind_mm(struct device *dev, int flags, struct svm_dev_ops *ops,
501501
}
502502

503503
info = get_domain_info(dev);
504-
if (!info || !info->pasid_supported) {
505-
kfree(sdev);
506-
goto out;
507-
}
508-
509504
sdev->did = FLPT_DEFAULT_DID;
510505
sdev->sid = PCI_DEVID(info->bus, info->devfn);
511506
if (info->ats_enabled) {

0 commit comments

Comments
 (0)