summaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2020-09-02 16:21:33 -0500
committerTakashi Iwai <tiwai@suse.de>2020-09-03 09:28:01 +0200
commitb248b9dd5975c1e16b7918c1dc7eaef7eccfde5f (patch)
treeb63bc3158f7cca3228743ec88bb6947b9af642e0 /sound/drivers
parente408ab068aeca958b83bb6e5ca724356f8c7d78e (diff)
downloadlinux-stable-b248b9dd5975c1e16b7918c1dc7eaef7eccfde5f.tar.gz
linux-stable-b248b9dd5975c1e16b7918c1dc7eaef7eccfde5f.tar.bz2
linux-stable-b248b9dd5975c1e16b7918c1dc7eaef7eccfde5f.zip
ALSA: vx: vx_pcm: remove redundant assignment
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 <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200902212133.30964-19-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/vx/vx_pcm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c
index 47361e26be80..3d2e3bcafca8 100644
--- a/sound/drivers/vx/vx_pcm.c
+++ b/sound/drivers/vx/vx_pcm.c
@@ -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;
}