Skip to contentSkip to conversation

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

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_lzo_get_blksize

Since commit aea170a099793abcd0e6de46b947458073204241 "ASoC: soc-cache: Add reg_size as a member to snd_soc_codec", the codec_drv pointer variable is not used in snd_soc_lzo_get_blksize.

---
 sound/soc/soc-cache.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
sound/soc/soc-cache.c +0 -3
index c17d012..fdfd488 100644
@@ -548,9 +548,6 @@ static inline int snd_soc_lzo_get_blkpos(struct snd_soc_codec *codec,
 
 static inline int snd_soc_lzo_get_blksize(struct snd_soc_codec *codec)
 {
-	const struct snd_soc_codec_driver *codec_drv;
-
-	codec_drv = codec->driver;
 	return DIV_ROUND_UP(codec->reg_size, snd_soc_lzo_block_count());
 }
 
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 3 lines · Axel Lin

Since commit aea170a099793abcd0e6de46b947458073204241 "ASoC: soc-cache: Add reg_size as a member to snd_soc_codec", the codec_drv pointer variable is not used in snd_soc_lzo_get_blksize.

Applied, thanks.