ALSA: wavefront: remove redundant assignment to pointer end
Subsystems (2)
PATCH 1/1 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
--- sound/isa/wavefront/wavefront_synth.c | 2 -- 1 file changed, 2 deletions(-)
sound/isa/wavefront/wavefront_synth.c +0 -2
@@ -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++) {
Signature · 1 line
2.35.3
PATCH 1/1 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
--- sound/isa/wavefront/wavefront_synth.c | 2 -- 1 file changed, 2 deletions(-)
sound/isa/wavefront/wavefront_synth.c +0 -2
@@ -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++) {
Signature · 1 line
2.35.3
Takashi Iwai
AppliedQuoted 10 lines · Colin Ian King
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 readSigned-off-by Colin Ian King <[email protected]>
Thanks, applied now.
Takashi