]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/soc/codecs/alc5623.c
ASoC: alc56(23|32): fix undefined return value of probing code
[karo-tx-linux.git] / sound / soc / codecs / alc5623.c
index 09f7e773bafb8721619843c187be4c24b06af73e..f500905e9373510d2bcfdb583b0569cec5994708 100644 (file)
@@ -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 */