Skip to content

Commit 5e7b782

Browse files
geoffreybennetttiwai
authored andcommitted
ALSA: scarlett2: Fix redeclaration of loop variable
Was using both "for (i = 0, ..." and "for (int i = 0, ..." in scarlett2_update_autogain(). Remove "int" to fix. Signed-off-by: Geoffrey D. Bennett <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8cf0b93 commit 5e7b782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/usb/mixer_scarlett2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,7 +3409,7 @@ static int scarlett2_update_autogain(struct usb_mixer_interface *mixer)
34093409
private->num_autogain_status_texts - 1;
34103410

34113411

3412-
for (int i = 0; i < SCARLETT2_AG_TARGET_COUNT; i++)
3412+
for (i = 0; i < SCARLETT2_AG_TARGET_COUNT; i++)
34133413
if (scarlett2_has_config_item(private,
34143414
scarlett2_ag_target_configs[i])) {
34153415
err = scarlett2_usb_get_config(
@@ -3420,7 +3420,7 @@ static int scarlett2_update_autogain(struct usb_mixer_interface *mixer)
34203420
}
34213421

34223422
/* convert from negative dBFS as used by the device */
3423-
for (int i = 0; i < SCARLETT2_AG_TARGET_COUNT; i++)
3423+
for (i = 0; i < SCARLETT2_AG_TARGET_COUNT; i++)
34243424
private->ag_targets[i] = -ag_target_values[i];
34253425

34263426
return 0;

0 commit comments

Comments
 (0)