mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
ASoC: mediatek: mtk-btcvsd: remove useless assignment
cppcheck warning: sound/soc/mediatek/common/mtk-btcvsd.c:783:34: style: Variable 'avail' is assigned a value that is never used. [unreadVariable] int written_size = count, avail = 0, cur_write_idx, write_size, cont; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20210311004904.121205-2-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0befe3a0c6
commit
2e5e57f085
1 changed files with 1 additions and 1 deletions
|
@ -780,7 +780,7 @@ static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt,
|
|||
char __user *buf,
|
||||
size_t count)
|
||||
{
|
||||
int written_size = count, avail = 0, cur_write_idx, write_size, cont;
|
||||
int written_size = count, avail, cur_write_idx, write_size, cont;
|
||||
unsigned int cur_buf_ofs = 0;
|
||||
unsigned long flags;
|
||||
unsigned int packet_size = bt->tx->packet_size;
|
||||
|
|
Loading…
Reference in a new issue