diff options
author | Christoph Jaeger <christophjaeger@linux.com> | 2014-04-04 07:44:19 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-04 08:47:48 -0400 |
commit | f78b1e0a8b85ed80b38e9b603b675dd7a0923128 (patch) | |
tree | c77fbe4f7858683a1ee009d1246dddbb28286633 /sound/soc | |
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')
-rw-r--r-- | sound/soc/codecs/alc5623.c | 3 | ||||
-rw-r--r-- | sound/soc/codecs/alc5632.c | 3 |
2 files changed, 2 insertions, 4 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) | |||
902 | { | 902 | { |
903 | struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); | 903 | struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); |
904 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 904 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
905 | int ret; | ||
906 | 905 | ||
907 | alc5623_reset(codec); | 906 | alc5623_reset(codec); |
908 | 907 | ||
@@ -961,7 +960,7 @@ static int alc5623_probe(struct snd_soc_codec *codec) | |||
961 | return -EINVAL; | 960 | return -EINVAL; |
962 | } | 961 | } |
963 | 962 | ||
964 | return ret; | 963 | return 0; |
965 | } | 964 | } |
966 | 965 | ||
967 | /* power down chip */ | 966 | /* power down chip */ |
diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c index ec071a6306ef..3ee8d4e41a99 100644 --- a/sound/soc/codecs/alc5632.c +++ b/sound/soc/codecs/alc5632.c | |||
@@ -1061,7 +1061,6 @@ static int alc5632_resume(struct snd_soc_codec *codec) | |||
1061 | static int alc5632_probe(struct snd_soc_codec *codec) | 1061 | static int alc5632_probe(struct snd_soc_codec *codec) |
1062 | { | 1062 | { |
1063 | struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); | 1063 | struct alc5632_priv *alc5632 = snd_soc_codec_get_drvdata(codec); |
1064 | int ret; | ||
1065 | 1064 | ||
1066 | /* power on device */ | 1065 | /* power on device */ |
1067 | alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 1066 | alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
@@ -1075,7 +1074,7 @@ static int alc5632_probe(struct snd_soc_codec *codec) | |||
1075 | return -EINVAL; | 1074 | return -EINVAL; |
1076 | } | 1075 | } |
1077 | 1076 | ||
1078 | return ret; | 1077 | return 0; |
1079 | } | 1078 | } |
1080 | 1079 | ||
1081 | /* power down chip */ | 1080 | /* power down chip */ |