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>
This commit is contained in:
parent
6987fd4223
commit
323250166d
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user