ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_lzo_get_blksize
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.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/soc-cache.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
sound/soc/soc-cache.c +0 -3
@@ -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
Mark Brown
AppliedQuoted 3 lines · Axel Lin
Since commit
aea170a099793abcd0e6de46b947458073204241"ASoC: soc-cache: Addreg_sizeas a member tosnd_soc_codec", thecodec_drvpointer variable is not used insnd_soc_lzo_get_blksize.
Applied, thanks.