]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/opl4/opl4_synth.c
ALSA: Kill snd_assert() in other places
[linux-2.6-omap-h63xx.git] / sound / drivers / opl4 / opl4_synth.c
index 74f6e53eae0dd382ce88664a8a297a180207a591..49b9e240915c48d1f236644de16157db03a6f0fb 100644 (file)
@@ -467,7 +467,7 @@ static struct opl4_voice *snd_opl4_get_voice(struct snd_opl4 *opl4)
        if (!list_empty(&opl4->off_voices))
                return list_entry(opl4->off_voices.next, struct opl4_voice, list);
        /* then get the oldest key-on voice */
-       snd_assert(!list_empty(&opl4->on_voices), );
+       snd_BUG_ON(list_empty(&opl4->on_voices));
        return list_entry(opl4->on_voices.next, struct opl4_voice, list);
 }