]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/isa/wavefront/wavefront_fx.c
ALSA: Kill snd_assert() in sound/isa/*
[linux-2.6-omap-h63xx.git] / sound / isa / wavefront / wavefront_fx.c
index 2efaa7f205aa617f56c64db3e26f3e279db25246..dfc449a2194e9795cb07cec10edf84af66b529ac 100644 (file)
@@ -180,11 +180,11 @@ snd_wavefront_fx_ioctl (struct snd_hwdep *sdev, struct file *file,
        unsigned short *pd;
        int err = 0;
 
-       snd_assert(sdev->card != NULL, return -ENODEV);
-       
        card = sdev->card;
-
-       snd_assert(card->private_data != NULL, return -ENODEV);
+       if (snd_BUG_ON(!card))
+               return -ENODEV;
+       if (snd_BUG_ON(!card->private_data))
+               return -ENODEV;
 
        acard = card->private_data;
        dev = &acard->wavefront;