diff mbox

ALSA: msnd: add some missing curly braces

Message ID 20150305112637.GB13378@mwanda (mailing list archive)
State Accepted
Commit 096a020a9ef5c947577d3b57199bfc9b7e686b49
Headers show

Commit Message

Dan Carpenter March 5, 2015, 11:26 a.m. UTC
There were some curly braces intended here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Comments

Takashi Iwai March 5, 2015, 12:02 p.m. UTC | #1
At Thu, 5 Mar 2015 14:26:37 +0300,
Dan Carpenter wrote:
> 
> There were some curly braces intended here.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Thanks, applied.


Takashi

> 
> diff --git a/sound/isa/msnd/msnd_pinnacle_mixer.c b/sound/isa/msnd/msnd_pinnacle_mixer.c
> index 17e49a0..b408540 100644
> --- a/sound/isa/msnd/msnd_pinnacle_mixer.c
> +++ b/sound/isa/msnd/msnd_pinnacle_mixer.c
> @@ -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;
>  }
>
diff mbox

Patch

diff --git a/sound/isa/msnd/msnd_pinnacle_mixer.c b/sound/isa/msnd/msnd_pinnacle_mixer.c
index 17e49a0..b408540 100644
--- a/sound/isa/msnd/msnd_pinnacle_mixer.c
+++ b/sound/isa/msnd/msnd_pinnacle_mixer.c
@@ -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;
 }