public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] ASoC: sunxi: Uninitialized variable in probe()
@ 2016-11-23 22:29 Dan Carpenter
  2016-11-24  4:33 ` Chen-Yu Tsai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dan Carpenter @ 2016-11-23 22:29 UTC (permalink / raw)
  To: Liam Girdwood, Chen-Yu Tsai
  Cc: Mark Brown, Jaroslav Kysela, Takashi Iwai, Maxime Ripard,
	alsa-devel, kernel-janitors

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>

diff --git a/sound/soc/sunxi/sun8i-codec-analog.c b/sound/soc/sunxi/sun8i-codec-analog.c
index 222bbd4..af02290 100644
--- a/sound/soc/sunxi/sun8i-codec-analog.c
+++ b/sound/soc/sunxi/sun8i-codec-analog.c
@@ -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;
 	}

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-25 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 22:29 [patch] ASoC: sunxi: Uninitialized variable in probe() Dan Carpenter
2016-11-24  4:33 ` Chen-Yu Tsai
2016-11-24 10:29 ` Maxime Ripard
2016-11-25 13:09 ` Applied "ASoC: sunxi: Uninitialized variable in probe()" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox