From: Jaroslav Kysela Date: Mon, 28 May 2012 09:14:33 +0000 (+0200) Subject: ASoC: wm8994: remove duplicate code X-Git-Tag: MMI-PSA29.97-13-9~15766^2~134 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cab3e1e65bfe070f09bb091eeda182b171d5929;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: wm8994: remove duplicate code It seems that the code duplication was added at a merge operation. Signed-off-by: Jaroslav Kysela Signed-off-by: Takashi Iwai --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index aa8c98b628da..1436b6ce74d1 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -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;