Skip to content

Commit 8082c51

Browse files
YuKuai-huaweimfischer
authored andcommitted
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 <[email protected]> Signed-off-by: yu kuai <[email protected]> Signed-off-by: Moritz Fischer <[email protected]>
1 parent e42617b commit 8082c51

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/fpga/dfl-fme-main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,8 @@ static int fme_dev_init(struct platform_device *pdev)
675675
static void fme_dev_destroy(struct platform_device *pdev)
676676
{
677677
struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
678-
struct dfl_fme *fme;
679678

680679
mutex_lock(&pdata->lock);
681-
fme = dfl_fpga_pdata_get_private(pdata);
682680
dfl_fpga_pdata_set_private(pdata, NULL);
683681
mutex_unlock(&pdata->lock);
684682
}

0 commit comments

Comments
 (0)