]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: wavefront: remove redundant assignment to pointer end
authorColin Ian King <colin.i.king@gmail.com>
Wed, 29 Jun 2022 10:27:43 +0000 (11:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Jul 2022 12:29:27 +0000 (14:29 +0200)
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>
sound/isa/wavefront/wavefront_synth.c

index 2aaaa68071744ec9c7e25062788dbb821255cdb6..13ce96148fa3b2c3a4b52ab7d75e5325caf07478 100644 (file)
@@ -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++) {