Commit 8082c51a authored by yu kuai's avatar yu kuai Committed by Moritz Fischer

fpga: dfl: fme: remove set but not used variable 'fme'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/fpga/dfl-fme-main.c: In function ‘fme_dev_destroy’:
drivers/fpga/dfl-fme-main.c:678:18: warning: variable ‘fme’ set but not
used [-Wunused-but-set-variable]

It is never used and so can be removed.
Acked-by: default avatarWu Hao <hao.wu@intel.com>
Signed-off-by: default avataryu kuai <yukuai3@huawei.com>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
parent e42617b8
......@@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
static void fme_dev_destroy(struct platform_device *pdev)
{
struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct dfl_fme *fme;
mutex_lock(&pdata->lock);
fme = dfl_fpga_pdata_get_private(pdata);
dfl_fpga_pdata_set_private(pdata, NULL);
mutex_unlock(&pdata->lock);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment