Commit 3db3d859 authored by Colin Ian King's avatar Colin Ian King Committed by Takashi Iwai

ALSA: usb-audio: remove redundant assignment to variable c

The variable c is being initialized in an outer for-loop and also
re-initialized inside an inner for-loop. The first initialization
is redundant and can be removed.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220207140617.341172-1-colin.i.king@gmail.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9d73d192
...@@ -221,7 +221,7 @@ static int snd_s1810c_init_mixer_maps(struct snd_usb_audio *chip) ...@@ -221,7 +221,7 @@ static int snd_s1810c_init_mixer_maps(struct snd_usb_audio *chip)
e = 0xbc; e = 0xbc;
for (n = 0; n < 2; n++) { for (n = 0; n < 2; n++) {
off = n * 18; off = n * 18;
for (b = off, c = 0; b < 18 + off; b++) { for (b = off; b < 18 + off; b++) {
/* This channel to all outputs ? */ /* This channel to all outputs ? */
for (c = 0; c <= 8; c++) { for (c = 0; c <= 8; c++) {
snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e); snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment