summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs35l35.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-03-13 15:32:37 +0300
committerMark Brown <broonie@kernel.org>2017-03-13 19:54:38 +0300
commitbfe41c678d49f440de3ae80b945f7f94d5dbd340 (patch)
treed30b9c62147fccf4c56ae37939cbe85422a0341d /sound/soc/codecs/cs35l35.c
parentf3a612a655c1ca585c89c654c06e56eb2f8539e4 (diff)
downloadlinux-bfe41c678d49f440de3ae80b945f7f94d5dbd340.tar.xz
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>
Diffstat (limited to 'sound/soc/codecs/cs35l35.c')
-rw-r--r--sound/soc/codecs/cs35l35.c2
1 files changed, 1 insertions, 1 deletions
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 = {