Skip to contentSkip to conversation

ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_flat_cache_init

PATCH Applied Axel Lin 2 participants 2 messages Aug 13, 2011 – Aug 15, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/soc-cache.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
sound/soc/soc-cache.c +0 -4
index d9f8ade..c17d012 100644
@@ -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);
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 3 lines · Axel Lin

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.

Applied, thanks.