summaryrefslogtreecommitdiff
path: root/sound/isa
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-06-29 11:27:43 +0100
committerTakashi Iwai <tiwai@suse.de>2022-07-04 14:29:27 +0200
commitdf98a94ce9c450a1af1193e06add37e601cbf2df (patch)
tree99ae6a7b462139678b3c33519a37077ff1b5154d /sound/isa
parent2e57a3358dda20128593fff9b39b522f1bdd26c6 (diff)
downloadlinux-riscv-df98a94ce9c450a1af1193e06add37e601cbf2df.tar.gz
linux-riscv-df98a94ce9c450a1af1193e06add37e601cbf2df.tar.bz2
linux-riscv-df98a94ce9c450a1af1193e06add37e601cbf2df.zip
ALSA: wavefront: remove redundant assignment to pointer end
Pointer end is being re-assigned the same value as it was initialized with in the previous statement. The re-assignment is redundant and can be removed. Cleans up clang scan-build warning: sound/isa/wavefront/wavefront_synth.c:582:17: warning: Value stored to 'end' during its initialization is never read Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220629102744.139673-1-colin.i.king@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/wavefront/wavefront_synth.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c
index 2aaaa6807174..13ce96148fa3 100644
--- a/sound/isa/wavefront/wavefront_synth.c
+++ b/sound/isa/wavefront/wavefront_synth.c
@@ -581,8 +581,6 @@ demunge_buf (unsigned char *src, unsigned char *dst, unsigned int src_bytes)
int i;
unsigned char *end = src + src_bytes;
- end = src + src_bytes;
-
/* NOTE: src and dst *CAN* point to the same address */
for (i = 0; src != end; i++) {