OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7ff672
)
ALSA: echoaudio: remove redundant assignment to variable i
author
Colin Ian King
<colin.i.king@gmail.com>
Tue, 5 Apr 2022 13:54:12 +0000
(14:54 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 5 Apr 2022 16:19:29 +0000
(18:19 +0200)
The variable i is being assigned a value that is never read, it
is being re-assigned in the following for-loop. The assignment is
redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link:
https://lore.kernel.org/r/20220405135412.199251-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/midi.c
patch
|
blob
|
history
diff --git
a/sound/pci/echoaudio/midi.c
b/sound/pci/echoaudio/midi.c
index
7be5c33
..
47b2c02
100644
(file)
--- a/
sound/pci/echoaudio/midi.c
+++ b/
sound/pci/echoaudio/midi.c
@@
-124,7
+124,6
@@
static int midi_service_irq(struct echoaudio *chip)
return 0;
/* Get the MIDI data from the comm page */
- i = 1;
received = 0;
for (i = 1; i <= count; i++) {
/* Get the MIDI byte */