Skip to content

Commit c0a652a

Browse files
ssuthiku-amdjoergroedel
authored andcommitted
iommu/amd: Remove unused variable in amd_iommufd_viommu_destroy()
This fixes warning reported by 0-DAY CI Kernel Test Service. Fixes: 757d2b1 ("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>
1 parent 103f4e7 commit c0a652a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/iommu/amd/iommufd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ int amd_iommufd_viommu_init(struct iommufd_viommu *viommu, struct iommu_domain *
5959
static void amd_iommufd_viommu_destroy(struct iommufd_viommu *viommu)
6060
{
6161
unsigned long flags;
62-
struct amd_iommu *iommu = container_of(viommu->iommu_dev, struct amd_iommu, iommu);
6362
struct amd_iommu_viommu *aviommu = container_of(viommu, struct amd_iommu_viommu, core);
6463
struct protection_domain *pdom = aviommu->parent;
6564

0 commit comments

Comments
 (0)