diff options
author | Lee Jones <[email protected]> | 2020-06-26 07:57:35 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-06-26 15:34:22 +0100 |
commit | 44455a6d3bcab53ae8330a009d513ade0f12c0c0 (patch) | |
tree | bdec81472f913a54d43dd3b213bb574a8c964bd5 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | f10a5e499cf3e0978845cd85d8a375bcfa193907 (diff) |
regulator: tps65217-regulator: Use the returned value of tps65217_reg_read()
Until now the aforementioned return value has been ignored.
Previous and current calls to tps65217_reg_read() return
instantly when the value is not 0, so let's do that.
Fixes the following W=1 warning:
drivers/regulator/tps65217-regulator.c: In function ‘tps65217_regulator_probe’:
drivers/regulator/tps65217-regulator.c:227:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
227 | int i, ret;
| ^~~
Signed-off-by: Lee Jones <[email protected]>
Cc: Russ Dill <[email protected]>
Cc: Keerthy <[email protected]>
Cc: AnilKumar Ch <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions