ASoC: cs35l35: returning uninitialized in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Mar 2017 12:32:37 +0000 (15:32 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2017 16:54:38 +0000 (16:54 +0000)
commitbfe41c678d49f440de3ae80b945f7f94d5dbd340
treed30b9c62147fccf4c56ae37939cbe85422a0341d
parentf3a612a655c1ca585c89c654c06e56eb2f8539e4
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 <dan.carpenter@oracle.com>
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l35.c