提交 bfe41c67 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: cs35l35: returning uninitialized in probe()

If cs35l35->pdata.stereo is false then "ret" isn't initialized.

Fixes: 6387f866 ("ASoC: Add support for Cirrus Logic CS35L35 Amplifier")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NPaul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f3a612a6
...@@ -969,7 +969,7 @@ static int cs35l35_codec_probe(struct snd_soc_codec *codec) ...@@ -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 = { static struct snd_soc_codec_driver soc_codec_dev_cs35l35 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册