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 aa8c98b628da46997b91d19e1538303d5df61f31..1436b6ce74d1319b347bc8294dee332a616a02c3 100644 (file)
@@ -724,9 +724,6 @@ static void wm1811_jackdet_set_mode(struct snd_soc_codec *codec, u16 mode)
 {
        struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
 
-       if (!wm8994->jackdet || !wm8994->jack_cb)
-               return;
-
        if (!wm8994->jackdet || !wm8994->jack_cb)
                return;