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>
This commit is contained in:

کامیت شده توسط
Jaroslav Kysela

والد
622207dc31
کامیت
da3cec35dd
@@ -306,7 +306,8 @@ static unsigned int get_ich_codec_bit(struct intel8x0m *chip, unsigned int codec
|
||||
static unsigned int codec_bit[3] = {
|
||||
ICH_PCR, ICH_SCR, ICH_TCR
|
||||
};
|
||||
snd_assert(codec < 3, return ICH_PCR);
|
||||
if (snd_BUG_ON(codec >= 3))
|
||||
return ICH_PCR;
|
||||
return codec_bit[codec];
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user