[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200508020231.143664-1-chenzhou10@huawei.com>
Date: Fri, 8 May 2020 10:02:31 +0800
From: Chen Zhou <chenzhou10@...wei.com>
To: <joro@...tes.org>, <matthias.bgg@...il.com>
CC: <iommu@...ts.linux-foundation.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <chenzhou10@...wei.com>
Subject: [PATCH -next] iommu: remove set but not used variable 'data'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/iommu/mtk_iommu_v1.c:467:25:
warning: variable ‘data’ set but not used [-Wunused-but-set-variable]
struct mtk_iommu_data *data;
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Chen Zhou <chenzhou10@...wei.com>
---
drivers/iommu/mtk_iommu_v1.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c
index 7bdd74c7cb9f..36cc1d9667a2 100644
--- a/drivers/iommu/mtk_iommu_v1.c
+++ b/drivers/iommu/mtk_iommu_v1.c
@@ -464,12 +464,11 @@ static void mtk_iommu_probe_finalize(struct device *dev)
static void mtk_iommu_release_device(struct device *dev)
{
struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev);
- struct mtk_iommu_data *data;
if (!fwspec || fwspec->ops != &mtk_iommu_ops)
return;
- data = dev_iommu_priv_get(dev);
+ dev_iommu_priv_get(dev);
iommu_fwspec_free(dev);
}
--
2.20.1
Powered by blists - more mailing lists