ASoC: Fix unused variable warning in WM8996
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Sep 2011 15:16:08 +0000 (16:16 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 20 Sep 2011 11:56:36 +0000 (12:56 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/codecs/wm8996.c

index cd1ba9637c015a548ba988536cbe74ec3da45255..1fe676c7aead74ca16f9f0a9822ff0eb6d8f9a7c 100644 (file)
@@ -669,8 +669,6 @@ SOC_SINGLE_TLV("DSP2 EQ B5 Volume", WM8996_DSP2_RX_EQ_GAINS_2, 6, 31, 0,
 static int bg_event(struct snd_soc_dapm_widget *w,
                    struct snd_kcontrol *kcontrol, int event)
 {
-       struct snd_soc_codec *codec = w->codec;
-       struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec);
        int ret = 0;
 
        switch (event) {