summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorStuart Henderson <stuarth@opensource.cirrus.com>2019-05-20 12:06:27 +0300
committerLee Jones <lee.jones@linaro.org>2019-07-02 14:11:31 +0300
commit323250166d4ebbb927a68a6387887f6f59d5da4d (patch)
tree6b8c01ebba3ee10d395d905330a00e90f83902a0 /drivers/mfd
parent6987fd42239ad43937166dace2ed8fb260b14d25 (diff)
downloadlinux-323250166d4ebbb927a68a6387887f6f59d5da4d.tar.xz
mfd: madera: Fix potential uninitialised use of variable
regmap_read won't set val to anything if an ACKed bus fails. Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/madera-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
index 826b971ccb86..dcc5c28925f2 100644
--- a/drivers/mfd/madera-core.c
+++ b/drivers/mfd/madera-core.c
@@ -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;
/*