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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
da3cec35dd
commit
5e246b850d
@@ -1560,7 +1560,8 @@ static int __init snd_cs4231_mixer(struct snd_card *card)
|
||||
struct snd_cs4231 *chip = card->private_data;
|
||||
int err, idx;
|
||||
|
||||
snd_assert(chip != NULL && chip->pcm != NULL, return -EINVAL);
|
||||
if (snd_BUG_ON(!chip || !chip->pcm))
|
||||
return -EINVAL;
|
||||
|
||||
strcpy(card->mixername, chip->pcm->name);
|
||||
|
||||
|
Reference in New Issue
Block a user