diff options
author | Lee Jones <[email protected]> | 2020-06-25 17:36:11 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-06-25 20:11:15 +0100 |
commit | b89a5effb3345a484584cc2b090af62e1ecb0871 (patch) | |
tree | 15872cca2de456e68390cfb6ef01ef126ba0d890 /tools/perf/scripts/python | |
parent | 2f5add1e42165c7eb7e4367e1180ae76aa13d394 (diff) |
regulator: cpcap-regulator: Remove declared and set, but never used variable 'ignore'
It's okay to not check the return value that you're not conserned
about, however it is not okay to assign a variable and not check or
use the result.
Fixes W=1 warnings(s):
drivers/regulator/cpcap-regulator.c:172:13: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
172 | int error, ignore;
| ^~~~~~
drivers/regulator/cpcap-regulator.c: In function ‘cpcap_regulator_disable’:
drivers/regulator/cpcap-regulator.c:196:13: warning: variable ‘ignore’ set but not used [-Wunused-but-set-variable]
196 | int error, ignore;
| ^~~~~~
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions