Skip to contentSkip to conversation

iommu/amd: Remove unused variable in amd_iommufd_viommu_destroy()

PATCH Applied Suravee Suthikulpanit 2 participants 2 messages Jan 20

Subsystems (2)
lore
Share & tools
lore

Suravee Suthikulpanit

author reviewer
#0 lore raw

PATCH 1/1 iommu/amd: Remove unused variable in amd_iommufd_viommu_destroy()

This fixes warning reported by 0-DAY CI Kernel Test Service.

Fixes 757d2b1fdf5b ("iommu/amd: Introduce gDomID-to-hDomID Mapping and handle parent domain invalidation")
---
 drivers/iommu/amd/iommufd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iommu/amd/iommufd.c +0 -1
index 2e50633d9c72..ad627fd5ccc7 100644
@@ -59,7 +59,6 @@ int amd_iommufd_viommu_init(struct iommufd_viommu *viommu, struct iommu_domain *
 static void amd_iommufd_viommu_destroy(struct iommufd_viommu *viommu)
 {
 	unsigned long flags;
-	struct amd_iommu *iommu = container_of(viommu->iommu_dev, struct amd_iommu, iommu);
 	struct amd_iommu_viommu *aviommu = container_of(viommu, struct amd_iommu_viommu, core);
 	struct protection_domain *pdom = aviommu->parent;
 
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 9 lines · Suravee Suthikulpanit

This fixes warning reported by 0-DAY CI Kernel Test Service.

Fixes 757d2b1fdf5b ("iommu/amd: Introduce gDomID-to-hDomID Mapping and handle parent domain invalidation")
---
 drivers/iommu/amd/iommufd.c | 1 -
 1 file changed, 1 deletion(-)

Applied, thanks.