Skip to content

Commit

Permalink
fpga: dfl: fme: remove set but not used variable 'fme'
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
yu kuai authored and mfischer committed Jan 3, 2020
1 parent e42617b commit 8082c51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/fpga/dfl-fme-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8082c51

Please sign in to comment.