diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:14 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:38 -0400 |
commit | da3cec35dd3c31d8706db4bf379372ce70d92118 (patch) | |
tree | 9379edebb1c7abc7a7a92ce3be30a35b77d9aa1d /sound/pci/azt3328.c | |
parent | 622207dc31895b4e82c39100db8635d885c795e2 (diff) |
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>
Diffstat (limited to 'sound/pci/azt3328.c')
-rw-r--r-- | sound/pci/azt3328.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index 22f18f3cfbc..333007c523a 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -816,7 +816,8 @@ snd_azf3328_mixer_new(struct snd_azf3328 *chip) | |||
816 | int err; | 816 | int err; |
817 | 817 | ||
818 | snd_azf3328_dbgcallenter(); | 818 | snd_azf3328_dbgcallenter(); |
819 | snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); | 819 | if (snd_BUG_ON(!chip || !chip->card)) |
820 | return -EINVAL; | ||
820 | 821 | ||
821 | card = chip->card; | 822 | card = chip->card; |
822 | 823 | ||
@@ -1471,7 +1472,8 @@ snd_azf3328_gameport_cooked_read(struct gameport *gameport, | |||
1471 | u8 val; | 1472 | u8 val; |
1472 | unsigned long flags; | 1473 | unsigned long flags; |
1473 | 1474 | ||
1474 | snd_assert(chip, return 0); | 1475 | if (snd_BUG_ON(!chip)) |
1476 | return 0; | ||
1475 | 1477 | ||
1476 | spin_lock_irqsave(&chip->reg_lock, flags); | 1478 | spin_lock_irqsave(&chip->reg_lock, flags); |
1477 | val = snd_azf3328_game_inb(chip, IDX_GAME_LEGACY_COMPATIBLE); | 1479 | val = snd_azf3328_game_inb(chip, IDX_GAME_LEGACY_COMPATIBLE); |