ALSA: Kill snd_assert() in sound/pci/*
Kill snd_assert() in sound/pci/*, 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>
Цей коміт міститься в:

зафіксовано
Jaroslav Kysela

джерело
622207dc31
коміт
da3cec35dd
@@ -2357,7 +2357,8 @@ static int snd_cmipci_uswitch_get(struct snd_kcontrol *kcontrol,
|
||||
{
|
||||
struct cmipci_switch_args *args;
|
||||
args = (struct cmipci_switch_args *)kcontrol->private_value;
|
||||
snd_assert(args != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!args))
|
||||
return -EINVAL;
|
||||
return _snd_cmipci_uswitch_get(kcontrol, ucontrol, args);
|
||||
}
|
||||
|
||||
@@ -2401,7 +2402,8 @@ static int snd_cmipci_uswitch_put(struct snd_kcontrol *kcontrol,
|
||||
{
|
||||
struct cmipci_switch_args *args;
|
||||
args = (struct cmipci_switch_args *)kcontrol->private_value;
|
||||
snd_assert(args != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!args))
|
||||
return -EINVAL;
|
||||
return _snd_cmipci_uswitch_put(kcontrol, ucontrol, args);
|
||||
}
|
||||
|
||||
@@ -2662,7 +2664,8 @@ static int __devinit snd_cmipci_mixer_new(struct cmipci *cm, int pcm_spdif_devic
|
||||
unsigned int idx;
|
||||
int err;
|
||||
|
||||
snd_assert(cm != NULL && cm->card != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!cm || !cm->card))
|
||||
return -EINVAL;
|
||||
|
||||
card = cm->card;
|
||||
|
||||
|
Посилання в новій задачі
Заблокувати користувача