Commit bfe41c67 authored by Dan Carpenter's avatar Dan Carpenter Committed by 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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarPaul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f3a612a6
......@@ -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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment