iommu/mediatek-v1: Fix a build warning for a unused variable 'data'
authorYong Wu <yong.wu@mediatek.com>
Tue, 19 May 2020 07:57:44 +0000 (15:57 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 19 May 2020 12:18:38 +0000 (14:18 +0200)
commit2bc61fbcc192f0b2e10e51e38f4f485ba5b293ca
tree7fa609cb723c50565fea83f5cc5fe790e975b124
parent8bbe13f52cb79666ada12033f04bdeb4741b7188
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%25lkp@intel.com/T/#u

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/1589875064-662-1-git-send-email-yong.wu@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu_v1.c