diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:11:45 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:36 -0400 |
commit | 622207dc31895b4e82c39100db8635d885c795e2 (patch) | |
tree | cbfd03ebe9caa2564924c76f2ca28bc348a68c87 /sound/isa/gus/gus_mixer.c | |
parent | 7eaa943c8ed8e91e05d0f5d0dc7a18e3319b45cf (diff) |
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>
Diffstat (limited to 'sound/isa/gus/gus_mixer.c')
-rw-r--r-- | sound/isa/gus/gus_mixer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/isa/gus/gus_mixer.c b/sound/isa/gus/gus_mixer.c index ebdb33469306..0dd43414016e 100644 --- a/sound/isa/gus/gus_mixer.c +++ b/sound/isa/gus/gus_mixer.c | |||
@@ -161,9 +161,11 @@ int snd_gf1_new_mixer(struct snd_gus_card * gus) | |||
161 | unsigned int idx, max; | 161 | unsigned int idx, max; |
162 | int err; | 162 | int err; |
163 | 163 | ||
164 | snd_assert(gus != NULL, return -EINVAL); | 164 | if (snd_BUG_ON(!gus)) |
165 | return -EINVAL; | ||
165 | card = gus->card; | 166 | card = gus->card; |
166 | snd_assert(card != NULL, return -EINVAL); | 167 | if (snd_BUG_ON(!card)) |
168 | return -EINVAL; | ||
167 | 169 | ||
168 | if (gus->ics_flag) | 170 | if (gus->ics_flag) |
169 | snd_component_add(card, "ICS2101"); | 171 | snd_component_add(card, "ICS2101"); |