ALSA: Kill snd_assert() in sound/isa/*
[safe/jmp/linux-2.6] / sound / isa / opti9xx / miro.c
index 4641daa..440755c 100644 (file)
@@ -675,7 +675,8 @@ static int __devinit snd_miro_mixer(struct snd_miro *miro)
        unsigned int idx;
        int err;
 
-       snd_assert(miro != NULL && miro->card != NULL, return -EINVAL);
+       if (snd_BUG_ON(!miro || !miro->card))
+               return -EINVAL;
 
        card = miro->card;