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:

committed by
Jaroslav Kysela

parent
7eaa943c8e
commit
622207dc31
@@ -394,7 +394,8 @@ static int snd_ad1816a_timer_open(struct snd_timer *timer)
|
||||
|
||||
static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer)
|
||||
{
|
||||
snd_assert(timer != NULL, return 0);
|
||||
if (snd_BUG_ON(!timer))
|
||||
return 0;
|
||||
|
||||
return 10000;
|
||||
}
|
||||
@@ -961,7 +962,8 @@ int __devinit snd_ad1816a_mixer(struct snd_ad1816a *chip)
|
||||
unsigned int idx;
|
||||
int err;
|
||||
|
||||
snd_assert(chip != NULL && chip->card != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!chip || !chip->card))
|
||||
return -EINVAL;
|
||||
|
||||
card = chip->card;
|
||||
|
||||
|
Reference in New Issue
Block a user