ALSA: opl3: Fix assignment in if condition
[linux-2.6-microblaze.git] / sound / drivers / opl3 / opl3_oss.c
index c82c7c1..7645365 100644 (file)
@@ -136,7 +136,8 @@ static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure)
        if (snd_BUG_ON(!arg))
                return -ENXIO;
 
-       if ((err = snd_opl3_synth_setup(opl3)) < 0)
+       err = snd_opl3_synth_setup(opl3);
+       if (err < 0)
                return err;
 
        /* fill the argument data */
@@ -144,7 +145,8 @@ static int snd_opl3_open_seq_oss(struct snd_seq_oss_arg *arg, void *closure)
        arg->addr.client = opl3->oss_chset->client;
        arg->addr.port = opl3->oss_chset->port;
 
-       if ((err = snd_opl3_synth_use_inc(opl3)) < 0)
+       err = snd_opl3_synth_use_inc(opl3);
+       if (err < 0)
                return err;
 
        opl3->synth_mode = SNDRV_OPL3_MODE_SYNTH;