]> asedeno.scripts.mit.edu Git - linux.git/commit
fpga: dfl: afu: remove set but not used variable 'afu'
authoryu kuai <yukuai3@huawei.com>
Thu, 26 Dec 2019 12:15:33 +0000 (20:15 +0800)
committerMoritz Fischer <mdf@kernel.org>
Fri, 3 Jan 2020 04:46:43 +0000 (20:46 -0800)
commit9bc65970bb037d3197083b205d27855ffd0f14f2
treec94bf6f70778a6e2b37207c4c63b585be8d0ec53
parent8082c51ac34d05258ac80de47eab1a5d727bb5d2
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 <hao.wu@intel.com>
Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/dfl-afu-main.c