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

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
......@@ -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;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment