From 2b1d60101c19037f4960bf9d483686561f789da7 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Fri, 1 Sep 2017 10:31:07 +0100 Subject: [PATCH] ASoC: madera: Fix uninitialised variable usage Change-Id: Ic75294a65b998d712b3a9e7221518756833fb78d Signed-off-by: Stuart Henderson --- sound/soc/codecs/madera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c index 5c25474932df..ffd5cb55a29e 100644 --- a/sound/soc/codecs/madera.c +++ b/sound/soc/codecs/madera.c @@ -336,7 +336,7 @@ static int madera_get_variable_u32_array(struct madera_priv *priv, } else if (n < 0) { dev_warn(madera->dev, "%s malformed (%d)\n", propname, n); - return ret; + return n; } else if ((n % multiple) != 0) { dev_warn(madera->dev, "%s not a multiple of %d entries\n", propname, multiple); -- 2.20.1