From: Dimitris Papastamos Date: Fri, 24 Sep 2010 12:02:07 +0000 (+0100) Subject: ASoC: WM8985: Remove unneeded declaration. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc38a8a11d332549e4de0537ba34f197cf42788b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: WM8985: Remove unneeded declaration. We are not using the private data in this function, so get rid of it. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index 247585a19be5..b94af96f2bd7 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c @@ -557,12 +557,10 @@ static int wm8985_dac_mute(struct snd_soc_dai *dai, int mute) static int wm8985_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) { - struct wm8985_priv *wm8985; struct snd_soc_codec *codec; u16 format, master, bcp, lrp; codec = dai->codec; - wm8985 = snd_soc_codec_get_drvdata(codec); switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { case SND_SOC_DAIFMT_I2S: