Skip to content

Commit

Permalink
ALSA: vx: vx_pcm: remove redundant assignment
Browse files Browse the repository at this point in the history
Fix cppcheck warning:

sound/drivers/vx/vx_pcm.c:63:7: style: Variable 'buf' is assigned a
value that is never used. [unreadVariable]
  buf = (unsigned char *)runtime->dma_area;
      ^

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
plbossart authored and tiwai committed Sep 3, 2020
1 parent e408ab0 commit b248b9d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/drivers/vx/vx_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *
*buf++ = vx_inb(chip, RXL);
if (++offset >= pipe->buffer_bytes) {
offset = 0;
buf = (unsigned char *)runtime->dma_area;
}
pipe->hw_ptr = offset;
}
Expand Down

0 comments on commit b248b9d

Please sign in to comment.