提交 df98a94c 编写于 作者: C Colin Ian King 提交者: Takashi Iwai

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: NColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220629102744.139673-1-colin.i.king@gmail.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
上级 2e57a335
...@@ -581,8 +581,6 @@ demunge_buf (unsigned char *src, unsigned char *dst, unsigned int src_bytes) ...@@ -581,8 +581,6 @@ demunge_buf (unsigned char *src, unsigned char *dst, unsigned int src_bytes)
int i; int i;
unsigned char *end = src + src_bytes; unsigned char *end = src + src_bytes;
end = src + src_bytes;
/* NOTE: src and dst *CAN* point to the same address */ /* NOTE: src and dst *CAN* point to the same address */
for (i = 0; src != end; i++) { for (i = 0; src != end; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册