Skip to content

Commit

Permalink
ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_so…
Browse files Browse the repository at this point in the history
…c_lzo_get_blksize

Since commit aea170a
"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 <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 15, 2011
1 parent 31e12dd commit 3a52f19
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/soc-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 3a52f19

Please sign in to comment.