]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
regmap: maple: Fix uninitialized symbol 'ret' warnings
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 29 Mar 2024 14:46:30 +0000 (14:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:36:00 +0000 (16:36 +0200)
commitfce7a547b9c88a45d7481c0875f38a779c39d778
tree156f06cfd81530e7a2eb3779d33dc08502a3448c
parent04b52388c46dc87c46594fb18a6cd97f201ec2fb
regmap: maple: Fix uninitialized symbol 'ret' warnings

[ Upstream commit eaa03486d932572dfd1c5f64f9dfebe572ad88c0 ]

Fix warnings reported by smatch by initializing local 'ret' variable
to 0.

drivers/base/regmap/regcache-maple.c:186 regcache_maple_drop()
error: uninitialized symbol 'ret'.
drivers/base/regmap/regcache-maple.c:290 regcache_maple_sync()
error: uninitialized symbol 'ret'.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: f033c26de5a5 ("regmap: Add maple tree based register cache")
Link: https://lore.kernel.org/r/20240329144630.1965159-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/regmap/regcache-maple.c