]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65217-regulator: Use the returned value of tps65217_reg_read()
authorLee Jones <lee.jones@linaro.org>
Fri, 26 Jun 2020 06:57:35 +0000 (07:57 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2020 14:34:22 +0000 (15:34 +0100)
commit1e6ce0b59323ace8dde8a22082ea19556586d5b5
treebdec81472f913a54d43dd3b213bb574a8c964bd5
parent502b8a4c0bd2b3433063e76b989930098146dfe3
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 <lee.jones@linaro.org>
Cc: Russ Dill <Russ.Dill@ti.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: AnilKumar Ch <anilkumar@ti.com>
Cc: linux-omap@vger.kernel.org
Link: https://lore.kernel.org/r/20200626065738.93412-7-lee.jones@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65217-regulator.c