[ALSA] soc - corgi - Fix checkpatch warnings
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 23 Apr 2008 13:12:19 +0000 (15:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:43 +0000 (12:00 +0200)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/pxa/corgi.c

index 1a70a6ac98ced1a2a9a5830e7a5678df8bea7b36..7f32a1167572c7cf67171a0468f0174cfb4da682 100644 (file)
@@ -297,21 +297,19 @@ static int corgi_wm8731_init(struct snd_soc_codec *codec)
        /* Add corgi specific controls */
        for (i = 0; i < ARRAY_SIZE(wm8731_corgi_controls); i++) {
                err = snd_ctl_add(codec->card,
-                       snd_soc_cnew(&wm8731_corgi_controls[i],codec, NULL));
+                       snd_soc_cnew(&wm8731_corgi_controls[i], codec, NULL));
                if (err < 0)
                        return err;
        }
 
        /* Add corgi specific widgets */
-       for(i = 0; i < ARRAY_SIZE(wm8731_dapm_widgets); i++) {
+       for (i = 0; i < ARRAY_SIZE(wm8731_dapm_widgets); i++)
                snd_soc_dapm_new_control(codec, &wm8731_dapm_widgets[i]);
-       }
 
        /* Set up corgi specific audio path audio_map */
-       for(i = 0; audio_map[i][0] != NULL; i++) {
+       for (i = 0; audio_map[i][0] != NULL; i++)
                snd_soc_dapm_connect_input(codec, audio_map[i][0],
                        audio_map[i][1], audio_map[i][2]);
-       }
 
        snd_soc_dapm_sync_endpoints(codec);
        return 0;
@@ -353,7 +351,8 @@ static int __init corgi_init(void)
 {
        int ret;
 
-       if (!(machine_is_corgi() || machine_is_shepherd() || machine_is_husky()))
+       if (!(machine_is_corgi() || machine_is_shepherd() ||
+             machine_is_husky()))
                return -ENODEV;
 
        corgi_snd_device = platform_device_alloc("soc-audio", -1);