Skip to content

Commit 9bc6597

Browse files
YuKuai-huaweimfischer
authored andcommitted
fpga: dfl: afu: remove set but not used variable 'afu'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/fpga/dfl-afu-main.c: In function ‘afu_dev_destroy’: drivers/fpga/dfl-afu-main.c:816:18: warning: variable ‘afu’ 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 8082c51 commit 9bc6597

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/fpga/dfl-afu-main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,8 @@ static int afu_dev_init(struct platform_device *pdev)
813813
static int afu_dev_destroy(struct platform_device *pdev)
814814
{
815815
struct dfl_feature_platform_data *pdata = dev_get_platdata(&pdev->dev);
816-
struct dfl_afu *afu;
817816

818817
mutex_lock(&pdata->lock);
819-
afu = dfl_fpga_pdata_get_private(pdata);
820818
afu_mmio_region_destroy(pdata);
821819
afu_dma_region_destroy(pdata);
822820
dfl_fpga_pdata_set_private(pdata, NULL);

0 commit comments

Comments
 (0)