Skip to content

Commit 2bc61fb

Browse files
YongWu-HFjoergroedel
authored andcommitted
iommu/mediatek-v1: Fix a build warning for a unused variable 'data'
This patch fixes a build warning: drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_release_device': >> drivers/iommu/mtk_iommu_v1.c:467:25: warning: variable 'data' set but >> not used [-Wunused-but-set-variable] 467 | struct mtk_iommu_data *data; | ^~~~ It's reported at: https://lore.kernel.org/linux-iommu/202005191458.gY38V8bU%[email protected]/T/#u Reported-by: kbuild test robot <[email protected]> Signed-off-by: Yong Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 8bbe13f commit 2bc61fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/iommu/mtk_iommu_v1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,10 @@ static void mtk_iommu_probe_finalize(struct device *dev)
469469
static void mtk_iommu_release_device(struct device *dev)
470470
{
471471
struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
472-
struct mtk_iommu_data *data;
473472

474473
if (!fwspec || fwspec->ops != &mtk_iommu_ops)
475474
return;
476475

477-
data = dev_iommu_priv_get(dev);
478476
iommu_fwspec_free(dev);
479477
}
480478

0 commit comments

Comments
 (0)