X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=sound%2Fcore%2Fseq%2Fseq_prioq.c;h=0101a8b99b7325650b7b4ccb758aac26366815aa;hb=dfdc5437bd62dd6a26961e27f26b671374749875;hp=85969db576c905514974d478e2c1495c8848ff05;hpb=75659ca0c10992dcb39258518368a0f6f56e935d;p=karo-tx-linux.git diff --git a/sound/core/seq/seq_prioq.c b/sound/core/seq/seq_prioq.c index 85969db576c9..0101a8b99b73 100644 --- a/sound/core/seq/seq_prioq.c +++ b/sound/core/seq/seq_prioq.c @@ -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);