ALSA: synth: Fix assignment in if condition
[linux-2.6-microblaze.git] / sound / synth / emux / emux.c
index f65e6c7..49d1976 100644 (file)
@@ -104,7 +104,8 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch
        if (emu->sflist == NULL)
                return -ENOMEM;
 
-       if ((err = snd_emux_init_hwdep(emu)) < 0)
+       err = snd_emux_init_hwdep(emu);
+       if (err < 0)
                return err;
 
        snd_emux_init_voices(emu);