Skip to content

Commit cfcccbe

Browse files
Qian Caijoergroedel
authored andcommitted
iommu/amd: Fix variable "iommu" set but not used
The commit dce8d69 ("iommu/amd: Convert to probe/release_device() call-backs") introduced an unused variable, drivers/iommu/amd_iommu.c: In function 'amd_iommu_uninit_device': drivers/iommu/amd_iommu.c:422:20: warning: variable 'iommu' set but not used [-Wunused-but-set-variable] struct amd_iommu *iommu; ^~~~~ Signed-off-by: Qian Cai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: dce8d69 ("iommu/amd: Convert to probe/release_device() call-backs") Signed-off-by: Joerg Roedel <[email protected]>
1 parent 1b032ec commit cfcccbe

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iommu/amd_iommu.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,12 @@ static void iommu_ignore_device(struct device *dev)
397397
static void amd_iommu_uninit_device(struct device *dev)
398398
{
399399
struct iommu_dev_data *dev_data;
400-
struct amd_iommu *iommu;
401400
int devid;
402401

403402
devid = get_device_id(dev);
404403
if (devid < 0)
405404
return;
406405

407-
iommu = amd_iommu_rlookup_table[devid];
408-
409406
dev_data = search_dev_data(devid);
410407
if (!dev_data)
411408
return;

0 commit comments

Comments
 (0)