Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32325016 authored by Stuart Henderson's avatar Stuart Henderson Committed by Lee Jones
Browse files

mfd: madera: Fix potential uninitialised use of variable



regmap_read won't set val to anything if an ACKed bus fails.

Signed-off-by: default avatarStuart Henderson <stuarth@opensource.cirrus.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 6987fd42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ EXPORT_SYMBOL_GPL(madera_name_from_type);
static int madera_wait_for_boot(struct madera *madera)
{
	ktime_t timeout;
	unsigned int val;
	unsigned int val = 0;
	int ret = 0;

	/*