]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: s2mps11: drop two needless variable initialisations
authorAndré Draszik <andre.draszik@linaro.org>
Thu, 22 Jan 2026 15:43:38 +0000 (15:43 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 4 Feb 2026 13:35:33 +0000 (13:35 +0000)
commit0809d3dcc0dd8f597adbcd4d881063eb1b437987
tree9b9e279c10288be2d4c948460d5080e743e7b6a5
parent7d33c0a4c6a3356db2b2f599820baf75d3753d44
regulator: s2mps11: drop two needless variable initialisations

The initialisations being removed are needless, as both variables are
being assigned values unconditionally further down. Additionally, doing
this eager init here might lead to preventing the compiler from issuing
a warning if a future code change actually forgets to assign a useful
value in some code path.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260122-s2mpg1x-regulators-v7-11-3b1f9831fffd@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c