diff options
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 22f18f3cfbc9..333007c523a1 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); |