[alsa-devel] [PATCH] ASoC: WM8985: Remove unneeded declaration.

Liam Girdwood lrg at slimlogic.co.uk
Fri Sep 24 17:31:04 CEST 2010


On Fri, 2010-09-24 at 13:02 +0100, Dimitris Papastamos wrote:
> We are not using the private data in this function, so get rid of it.
> 
> Signed-off-by: Dimitris Papastamos <dp at opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/wm8985.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c
> index 247585a..b94af96 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:

Acked-by: Liam Girdwood <lrg at slimlogic.co.uk>
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list