From: Axel Lin Date: Sat, 13 Aug 2011 13:27:16 +0000 (+0800) Subject: ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_lzo_get_blksize X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a52f19ee6b5cbe36b9a47ab01ee7ca6d2e559e8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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. 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 c17d01211835..fdfd4881c9d1 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c @@ -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()); }