]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu/amd: Remove unused variable in amd_iommufd_viommu_destroy()
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 20 Jan 2026 01:48:43 +0000 (01:48 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 20 Jan 2026 09:16:16 +0000 (10:16 +0100)
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")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601190634.bl7Mjx5Q-lkp@intel.com/
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd/iommufd.c

index 2e50633d9c72f6a4608ec878f0db3cb0eceeb2cd..ad627fd5ccc7301c29b103731fb4bc466caddfd0 100644 (file)
@@ -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;