diff mbox series

ALSA: echoaudio: remove redundant assignment to variable i

Message ID 20220405135412.199251-1-colin.i.king@gmail.com (mailing list archive)
State New, archived
Headers show
Series ALSA: echoaudio: remove redundant assignment to variable i | expand

Commit Message

Colin King (gmail) April 5, 2022, 1:54 p.m. UTC
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>
---
 sound/pci/echoaudio/midi.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Takashi Iwai April 5, 2022, 4:20 p.m. UTC | #1
On Tue, 05 Apr 2022 15:54:12 +0200,
Colin Ian King wrote:
> 
> 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>

Thanks, applied.


Takashi
diff mbox series

Patch

diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c
index 7be5c3327b16..47b2c023ee3d 100644
--- 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 */