diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-13 09:12:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-15 09:52:02 -0400 |
commit | 31e12dd377f463eba21609486ee809fd1418d400 (patch) | |
tree | 9760aba9f909ed64ec660d94ee07117fddf57e7e /sound/soc | |
parent | ea19f494d6944ade02085d894a17c92d8e3057f0 (diff) |
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 <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/soc-cache.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) | |||
868 | 868 | ||
869 | static int snd_soc_flat_cache_init(struct snd_soc_codec *codec) | 869 | static int snd_soc_flat_cache_init(struct snd_soc_codec *codec) |
870 | { | 870 | { |
871 | const struct snd_soc_codec_driver *codec_drv; | ||
872 | |||
873 | codec_drv = codec->driver; | ||
874 | |||
875 | if (codec->reg_def_copy) | 871 | if (codec->reg_def_copy) |
876 | codec->reg_cache = kmemdup(codec->reg_def_copy, | 872 | codec->reg_cache = kmemdup(codec->reg_def_copy, |
877 | codec->reg_size, GFP_KERNEL); | 873 | codec->reg_size, GFP_KERNEL); |