diff options
author | Christoph Jaeger | 2014-04-04 13:44:19 +0200 |
---|---|---|
committer | Mark Brown | 2014-04-04 13:47:48 +0100 |
commit | f78b1e0a8b85ed80b38e9b603b675dd7a0923128 (patch) | |
tree | c77fbe4f7858683a1ee009d1246dddbb28286633 /sound/soc/codecs/alc5623.c | |
parent | c159a85013afbb8283f0c7272812952e04d5c3a1 (diff) |
ASoC: alc56(23|32): fix undefined return value of probing code
Commit 5d6be5aa ("ASoC: codec: Simplify ASoC probe code.") left variable
'ret', whose value is returned, uninitialized. Since it is not used
otherwise, remove it.
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/alc5623.c')
-rw-r--r-- | sound/soc/codecs/alc5623.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c index 09f7e773bafb..f500905e9373 100644 --- a/sound/soc/codecs/alc5623.c +++ b/sound/soc/codecs/alc5623.c @@ -902,7 +902,6 @@ static int alc5623_probe(struct snd_soc_codec *codec) { struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); struct snd_soc_dapm_context *dapm = &codec->dapm; - int ret; alc5623_reset(codec); @@ -961,7 +960,7 @@ static int alc5623_probe(struct snd_soc_codec *codec) return -EINVAL; } - return ret; + return 0; } /* power down chip */ |