ALSA: sparc: Fix assignment in if condition
[sfrench/cifs-2.6.git] / sound / sparc / dbri.c
index b055f583957877d462daaee0cb1a0888db752277..6b84f66e4af4e843f3f21819dca9c7c7938d7821 100644 (file)
@@ -2226,11 +2226,12 @@ static int snd_dbri_pcm(struct snd_card *card)
        struct snd_pcm *pcm;
        int err;
 
-       if ((err = snd_pcm_new(card,
-                              /* ID */             "sun_dbri",
-                              /* device */         0,
-                              /* playback count */ 1,
-                              /* capture count */  1, &pcm)) < 0)
+       err = snd_pcm_new(card,
+                         /* ID */          "sun_dbri",
+                         /* device */      0,
+                         /* playback count */ 1,
+                         /* capture count */  1, &pcm);
+       if (err < 0)
                return err;
 
        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_dbri_ops);