]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/sb/emu8000.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / sb / emu8000.c
index b35be7d9a9fa8b4a70e1037534c2e8bd0b821d9f..96678d5d3834863fbfe440df54b8170cfa088095 100644 (file)
@@ -1023,7 +1023,8 @@ snd_emu8000_create_mixer(struct snd_card *card, struct snd_emu8000 *emu)
 {
        int i, err = 0;
 
-       snd_assert(emu != NULL && card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!emu || !card))
+               return -EINVAL;
 
        spin_lock_init(&emu->control_lock);