提交 f78b1e0a 编写于 作者: C Christoph Jaeger 提交者: Mark Brown

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: NChristoph Jaeger <christophjaeger@linux.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 c159a850
...@@ -902,7 +902,6 @@ static int alc5623_probe(struct snd_soc_codec *codec) ...@@ -902,7 +902,6 @@ static int alc5623_probe(struct snd_soc_codec *codec)
{ {
struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec);
struct snd_soc_dapm_context *dapm = &codec->dapm; struct snd_soc_dapm_context *dapm = &codec->dapm;
int ret;
alc5623_reset(codec); alc5623_reset(codec);
...@@ -961,7 +960,7 @@ static int alc5623_probe(struct snd_soc_codec *codec) ...@@ -961,7 +960,7 @@ static int alc5623_probe(struct snd_soc_codec *codec)
return -EINVAL; return -EINVAL;
} }
return ret; return 0;
} }
/* power down chip */ /* power down chip */
......
...@@ -1061,7 +1061,6 @@ static int alc5632_resume(struct snd_soc_codec *codec) ...@@ -1061,7 +1061,6 @@ static int alc5632_resume(struct snd_soc_codec *codec)
static int alc5632_probe(struct snd_soc_codec *codec) static int alc5632_probe(struct snd_soc_codec *codec)
{ {
struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec);
int ret;
/* power on device */ /* power on device */
alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY); alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
...@@ -1075,7 +1074,7 @@ static int alc5632_probe(struct snd_soc_codec *codec) ...@@ -1075,7 +1074,7 @@ static int alc5632_probe(struct snd_soc_codec *codec)
return -EINVAL; return -EINVAL;
} }
return ret; return 0;
} }
/* power down chip */ /* power down chip */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册