]> 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:38:12 +0000 (16:38 +0200)
commitf739aed56e5406a560254be9504c3d9d500506bf
tree345db7006c5f10364cd5be184b8e0e3b744cfefc
parenta2a72340aa00fb2c5f6730c4d004704e4956e131
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