Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220207140617.341172-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Colin Ian King and committed by
Takashi Iwai
3db3d859 9d73d192

+1 -1
+1 -1
sound/usb/mixer_s1810c.c
··· 221 221 e = 0xbc; 222 222 for (n = 0; n < 2; n++) { 223 223 off = n * 18; 224 - for (b = off, c = 0; b < 18 + off; b++) { 224 + for (b = off; b < 18 + off; b++) { 225 225 /* This channel to all outputs ? */ 226 226 for (c = 0; c <= 8; c++) { 227 227 snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e);