diff options
author | Lee Jones <[email protected]> | 2020-07-01 09:58:45 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-07-01 15:05:37 +0200 |
commit | 8bc056e84a66e37efda30a3a66db9a27f023d9ba (patch) | |
tree | 333d60676efcb653d51f63109b81396cf53ab4cb /tools/perf/scripts/python/sctop.py | |
parent | 82f5b473d91a7f4e687207fb6d53f7c55669fcd0 (diff) |
misc: lattice-ecp3-config: Remove set but clearly unused variable 'ret'
It's odd for the return value to be assigned to a variable so many
times, but never actually checked, but this has been the case since
the driver's inception in 2012. If it hasn't caused any issues by
now, it's probably unlikely to. Let's take it out, at least until
someone finds a reason to start using it.
Fixes the following W=1 kernel build warning:
drivers/misc/lattice-ecp3-config.c: In function ‘firmware_load’:
drivers/misc/lattice-ecp3-config.c:70:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
70 | int ret;
| ^~~
Cc: Stefan Roese <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions