From: Dan Carpenter Date: Mon, 13 Mar 2017 12:32:37 +0000 (+0300) Subject: ASoC: cs35l35: returning uninitialized in probe() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bfe41c678d49f440de3ae80b945f7f94d5dbd340;p=openwrt%2Fstaging%2Fblogic.git ASoC: cs35l35: returning uninitialized in probe() If cs35l35->pdata.stereo is false then "ret" isn't initialized. Fixes: 6387f866a2cc ("ASoC: Add support for Cirrus Logic CS35L35 Amplifier") Signed-off-by: Dan Carpenter Acked-by: Paul Handrigan Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c index 6a266516f543..05117fca7e3c 100644 --- a/sound/soc/codecs/cs35l35.c +++ b/sound/soc/codecs/cs35l35.c @@ -969,7 +969,7 @@ static int cs35l35_codec_probe(struct snd_soc_codec *codec) } } - return ret; + return 0; } static struct snd_soc_codec_driver soc_codec_dev_cs35l35 = {