ALSA: Kill snd_assert() in sound/isa/*
Kill snd_assert() in sound/isa/*, 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>
This commit is contained in:

committato da
Jaroslav Kysela

parent
7eaa943c8e
commit
622207dc31
@@ -156,7 +156,8 @@ snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp,
|
||||
struct snd_emu8000 *emu;
|
||||
|
||||
emu = rec->hw;
|
||||
snd_assert(sp != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!sp))
|
||||
return -EINVAL;
|
||||
|
||||
if (sp->v.size == 0)
|
||||
return 0;
|
||||
|
Fai riferimento in un nuovo problema
Block a user