ALSA: echoaudio: remove redundant assignment to variable bytes
authorColin Ian King <colin.i.king@gmail.com>
Wed, 2 Mar 2022 17:07:28 +0000 (17:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Mar 2022 08:50:39 +0000 (09:50 +0100)
commit3cffb26fbb5202c6a4bee4b99d6bef5623003fbb
tree4a7407f6f3277a2888c362b39e81b7c7f94fa52e
parent76f22f4dcae645ea468811f9d30ec04f9ffaa1ea
ALSA: echoaudio: remove redundant assignment to variable bytes

The variable bytes is being assigned a value that is never read, it
is being re-assigned inside a following if block. The assignment is
redundant and can be removed.

Cleans up clang scan build warning:
sound/pci/echoaudio/midi.c:211:9: warning: Although the value stored
to 'bytes' is used in the enclosing expression, the value is never
actually read from 'bytes' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220302170728.1094633-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/midi.c