]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/seq/seq_prioq.c
ALSA: Kill snd_assert() in sound/core/*
[linux-2.6-omap-h63xx.git] / sound / core / seq / seq_prioq.c
index 85969db576c905514974d478e2c1495c8848ff05..0101a8b99b7325650b7b4ccb758aac26366815aa 100644 (file)
@@ -153,8 +153,8 @@ int snd_seq_prioq_cell_in(struct snd_seq_prioq * f,
        int count;
        int prior;
 
-       snd_assert(f, return -EINVAL);
-       snd_assert(cell, return -EINVAL);
+       if (snd_BUG_ON(!f || !cell))
+               return -EINVAL;
        
        /* check flags */
        prior = (cell->event.flags & SNDRV_SEQ_PRIORITY_MASK);