Skip to contentSkip to conversation

ALSA: msnd: add some missing curly braces

PATCH Applied Dan Carpenter 2 participants 2 messages Mar 5, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: msnd: add some missing curly braces

There were some curly braces intended here.

sound/isa/msnd/msnd_pinnacle_mixer.c +2 -1
index 17e49a0..b408540 100644
@@ -306,11 +306,12 @@ int snd_msndmix_new(struct snd_card *card)
 	spin_lock_init(&chip->mixer_lock);
 	strcpy(card->mixername, "MSND Pinnacle Mixer");
 
-	for (idx = 0; idx < ARRAY_SIZE(snd_msnd_controls); idx++)
+	for (idx = 0; idx < ARRAY_SIZE(snd_msnd_controls); idx++) {
 		err = snd_ctl_add(card,
 				  snd_ctl_new1(snd_msnd_controls + idx, chip));
 		if (err < 0)
 			return err;
+	}
 
 	return 0;
 }
Applied
#1 lore raw

At Thu, 5 Mar 2015 14:26:37 +0300,

Quoted 4 lines · Dan Carpenter

There were some curly braces intended here.

Thanks, applied.

Takashi

Quoted 20 lines
sound/isa/msnd/msnd_pinnacle_mixer.c +2 -1
index 17e49a0..b408540 100644
@@ -306,11 +306,12 @@ int snd_msndmix_new(struct snd_card *card)
 	spin_lock_init(&chip->mixer_lock);
 	strcpy(card->mixername, "MSND Pinnacle Mixer");
 
-	for (idx = 0; idx < ARRAY_SIZE(snd_msnd_controls); idx++)
+	for (idx = 0; idx < ARRAY_SIZE(snd_msnd_controls); idx++) {
 		err = snd_ctl_add(card,
 				  snd_ctl_new1(snd_msnd_controls + idx, chip));
 		if (err < 0)
 			return err;
+	}
 
 	return 0;
 }