diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:47 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:40 -0400 |
commit | 5e246b850df563224be26f1d409cf66fd6c968df (patch) | |
tree | 970e7faf60b86cb2c489a08ca506075c398165e5 /sound/drivers/opl4 | |
parent | da3cec35dd3c31d8706db4bf379372ce70d92118 (diff) |
ALSA: Kill snd_assert() in other places
Kill snd_assert() in other places, either removed or replaced with
if () with snd_BUG_ON().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/drivers/opl4')
-rw-r--r-- | sound/drivers/opl4/opl4_synth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/opl4/opl4_synth.c b/sound/drivers/opl4/opl4_synth.c index 74f6e53eae0d..49b9e240915c 100644 --- a/sound/drivers/opl4/opl4_synth.c +++ b/sound/drivers/opl4/opl4_synth.c | |||
@@ -467,7 +467,7 @@ static struct opl4_voice *snd_opl4_get_voice(struct snd_opl4 *opl4) | |||
467 | if (!list_empty(&opl4->off_voices)) | 467 | if (!list_empty(&opl4->off_voices)) |
468 | return list_entry(opl4->off_voices.next, struct opl4_voice, list); | 468 | return list_entry(opl4->off_voices.next, struct opl4_voice, list); |
469 | /* then get the oldest key-on voice */ | 469 | /* then get the oldest key-on voice */ |
470 | snd_assert(!list_empty(&opl4->on_voices), ); | 470 | snd_BUG_ON(list_empty(&opl4->on_voices)); |
471 | return list_entry(opl4->on_voices.next, struct opl4_voice, list); | 471 | return list_entry(opl4->on_voices.next, struct opl4_voice, list); |
472 | } | 472 | } |
473 | 473 | ||