mirror of https://gitee.com/openkylin/linux.git
ASoC: cs35l35: returning uninitialized in probe()
If cs35l35->pdata.stereo is false then "ret" isn't initialized.
Fixes: 6387f866a2
("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>
This commit is contained in:
parent
f3a612a655
commit
bfe41c678d
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue