From: Axel Lin Date: Sat, 13 Aug 2011 13:12:01 +0000 (+0800) Subject: ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_flat_cache_init X-Git-Tag: next-20110816~37^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31e12dd377f463eba21609486ee809fd1418d400;p=karo-tx-linux.git ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_flat_cache_init Since commit d779fce5d79525d66269c8f6e430e1515d697f3d "ASoC: soc-cache: Ensure flat compression uses a copy of the defaults cache", the codec_drv pointer variable is not used any more. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index d9f8aded51f3..c17d01211835 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c @@ -868,10 +868,6 @@ static int snd_soc_flat_cache_exit(struct snd_soc_codec *codec) static int snd_soc_flat_cache_init(struct snd_soc_codec *codec) { - const struct snd_soc_codec_driver *codec_drv; - - codec_drv = codec->driver; - if (codec->reg_def_copy) codec->reg_cache = kmemdup(codec->reg_def_copy, codec->reg_size, GFP_KERNEL);