[PATCH v1 04/10] iommu/vt-d: Remove iova_cache_get/put()
From: Lu Baolu
Date: Mon Feb 07 2022 - 02:02:10 EST
These have been done in drivers/iommu/dma-iommu.c. Remove this duplicate
code.
Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
---
drivers/iommu/intel/iommu.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c
index 583ec0fa4ac1..e8d58654361c 100644
--- a/drivers/iommu/intel/iommu.c
+++ b/drivers/iommu/intel/iommu.c
@@ -3348,9 +3348,6 @@ static inline int iommu_devinfo_cache_init(void)
static int __init iommu_init_mempool(void)
{
int ret;
- ret = iova_cache_get();
- if (ret)
- return ret;
ret = iommu_domain_cache_init();
if (ret)
@@ -3362,7 +3359,6 @@ static int __init iommu_init_mempool(void)
kmem_cache_destroy(iommu_domain_cache);
domain_error:
- iova_cache_put();
return -ENOMEM;
}
@@ -3371,7 +3367,6 @@ static void __init iommu_exit_mempool(void)
{
kmem_cache_destroy(iommu_devinfo_cache);
kmem_cache_destroy(iommu_domain_cache);
- iova_cache_put();
}
static void __init init_no_remapping_devices(void)
--
2.25.1