mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
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: Wu Hao <hao.wu@intel.com> Signed-off-by: yu kuai <yukuai3@huawei.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
This commit is contained in:
parent
e42617b825
commit
8082c51ac3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user