ALSA: msnd: add some missing curly braces
Subsystems (2)
PATCH 1/1 ALSA: msnd: add some missing curly braces
There were some curly braces intended here.
Signed-off-by Dan Carpenter <[email protected]>
sound/isa/msnd/msnd_pinnacle_mixer.c +2 -1
@@ -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 ; }
Takashi Iwai
AppliedAt Thu, 5 Mar 2015 14:26:37 +0300,
Quoted 4 lines · Dan Carpenter
There were some curly braces intended here.
Signed-off-by Dan Carpenter <[email protected]>
Thanks, applied.
Takashi
Quoted 20 lines
sound/isa/msnd/msnd_pinnacle_mixer.c +2
-1@@ -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 ; }