ASoC: wm8994: remove duplicate code
authorJaroslav Kysela <perex@perex.cz>
Mon, 28 May 2012 09:14:33 +0000 (11:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2012 09:14:13 +0000 (11:14 +0200)
It seems that the code duplication was added at a merge operation.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/codecs/wm8994.c

index aa8c98b..1436b6c 100644 (file)
@@ -727,9 +727,6 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode)
        if (!wm8994->jackdet || !wm8994->jack_cb)
                return;
 
-       if (!wm8994->jackdet || !wm8994->jack_cb)
-               return;
-
        if (wm8994->active_refcount)
                mode = WM1811_JACKDET_MODE_AUDIO;