]> Git Repo - linux.git/commitdiff
ASoC: wm8996: Remove unused variable
authorSachin Kamat <[email protected]>
Tue, 1 Jul 2014 04:29:33 +0000 (09:59 +0530)
committerMark Brown <[email protected]>
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
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;
This page took 0.069776 seconds and 4 git commands to generate.