ASoC: wm8996: Remove unused variable
authorSachin Kamat <sachin.kamat@samsung.com>
Tue, 1 Jul 2014 04:29:33 +0000 (09:59 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 3 Jul 2014 18:46:23 +0000 (19:46 +0100)
'ret' is not used in the function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm8996.c

index 69266332760ebad71bed763449afa2f8eb8079a9..622f92565030ff519565be94d99ad7afdae38902 100644 (file)
@@ -620,15 +620,12 @@ static int bg_event(struct snd_soc_dapm_widget *w,
 static int cp_event(struct snd_soc_dapm_widget *w,
                    struct snd_kcontrol *kcontrol, int event)
 {
-       int ret = 0;
-
        switch (event) {
        case SND_SOC_DAPM_POST_PMU:
                msleep(5);
                break;
        default:
                WARN(1, "Invalid event %d\n", event);
-               ret = -EINVAL;
        }
 
        return 0;