diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-02-07 14:06:17 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-02-08 08:21:32 +0100 |
commit | 3db3d859441b93cefe715ac5bd90d02873fe65d3 (patch) | |
tree | 10c5856cfb122257f1592889885a069e4016fc8d /sound/usb/mixer_s1810c.c | |
parent | 9d73d1928eb861cb90ddad08724c5ceb83c9a13b (diff) | |
download | linux-stable-3db3d859441b93cefe715ac5bd90d02873fe65d3.tar.gz linux-stable-3db3d859441b93cefe715ac5bd90d02873fe65d3.tar.bz2 linux-stable-3db3d859441b93cefe715ac5bd90d02873fe65d3.zip |
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>
Diffstat (limited to 'sound/usb/mixer_s1810c.c')
-rw-r--r-- | sound/usb/mixer_s1810c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer_s1810c.c b/sound/usb/mixer_s1810c.c index 0255089c9efb..fac4bbc6b275 100644 --- a/sound/usb/mixer_s1810c.c +++ b/sound/usb/mixer_s1810c.c @@ -221,7 +221,7 @@ static int snd_s1810c_init_mixer_maps(struct snd_usb_audio *chip) e = 0xbc; for (n = 0; n < 2; n++) { off = n * 18; - for (b = off, c = 0; b < 18 + off; b++) { + for (b = off; b < 18 + off; b++) { /* This channel to all outputs ? */ for (c = 0; c <= 8; c++) { snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e); |