Skip to content

Commit 3cffb26

Browse files
ColinIanKingtiwai
authored andcommitted
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>
1 parent 76f22f4 commit 3cffb26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/pci/echoaudio/midi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static void snd_echo_midi_output_write(struct timer_list *t)
208208

209209
/* No interrupts are involved: we have to check at regular intervals
210210
if the card's output buffer has room for new data. */
211-
sent = bytes = 0;
211+
sent = 0;
212212
spin_lock_irqsave(&chip->lock, flags);
213213
chip->midi_full = 0;
214214
if (!snd_rawmidi_transmit_empty(chip->midi_out)) {

0 commit comments

Comments
 (0)