git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: Kill snd_assert() in sound/core/*
[pandora-kernel.git]
/
sound
/
core
/
seq
/
seq_prioq.c
diff --git
a/sound/core/seq/seq_prioq.c
b/sound/core/seq/seq_prioq.c
index
85969db
..
0101a8b
100644
(file)
--- 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);