]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: cpcap-regulator: Remove declared and set, but never used variable 'ignore'
authorLee Jones <lee.jones@linaro.org>
Thu, 25 Jun 2020 16:36:11 +0000 (17:36 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 25 Jun 2020 19:11:15 +0000 (20:11 +0100)
commit402f3e18f2cddb08ca75bea2a1ddf8b67b0493ec
tree15872cca2de456e68390cfb6ef01ef126ba0d890
parent7177e66486b2d7db2c271fe04eb9d216ae67c392
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 <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200625163614.4001403-8-lee.jones@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/cpcap-regulator.c