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:
Dan Carpenter 2017-03-13 15:32:37 +03:00 committed by Mark Brown
parent f3a612a655
commit bfe41c678d
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {