ASoC: sunxi: Uninitialized variable in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Nov 2016 22:29:06 +0000 (01:29 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 24 Nov 2016 10:51:18 +0000 (10:51 +0000)
Oddly enough, my version of GCC misses this uninitialized variable.

Fixes: ba2ff3027b5a ("ASoC: sunxi: Add support for A23/A33/H3 codec's analog path controls")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec-analog.c

index 222bbd440b1e91854dd54c2298de055a0cae9b8b..af02290ebe49cc117377427e17b463a9f9aa479a 100644 (file)
@@ -589,7 +589,7 @@ static int sun8i_codec_analog_cmpnt_probe(struct snd_soc_component *cmpnt)
        }
 
        if (quirks->has_hmic) {
-               sun8i_codec_add_hmic(cmpnt);
+               ret = sun8i_codec_add_hmic(cmpnt);
                if (ret)
                        return ret;
        }