diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-03-02 17:07:28 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-03-04 09:50:39 +0100 |
commit | 3cffb26fbb5202c6a4bee4b99d6bef5623003fbb (patch) | |
tree | 4a7407f6f3277a2888c362b39e81b7c7f94fa52e | |
parent | 76f22f4dcae645ea468811f9d30ec04f9ffaa1ea (diff) | |
download | linux-stable-3cffb26fbb5202c6a4bee4b99d6bef5623003fbb.tar.gz linux-stable-3cffb26fbb5202c6a4bee4b99d6bef5623003fbb.tar.bz2 linux-stable-3cffb26fbb5202c6a4bee4b99d6bef5623003fbb.zip |
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>
-rw-r--r-- | sound/pci/echoaudio/midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c index cb72d27e809e..7be5c3327b16 100644 --- a/sound/pci/echoaudio/midi.c +++ b/sound/pci/echoaudio/midi.c @@ -208,7 +208,7 @@ static void snd_echo_midi_output_write(struct timer_list *t) /* No interrupts are involved: we have to check at regular intervals if the card's output buffer has room for new data. */ - sent = bytes = 0; + sent = 0; spin_lock_irqsave(&chip->lock, flags); chip->midi_full = 0; if (!snd_rawmidi_transmit_empty(chip->midi_out)) { |