diff options
Diffstat (limited to 'sound/isa/wavefront/wavefront_synth.c')
-rw-r--r-- | sound/isa/wavefront/wavefront_synth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index 0bb9b925660..4c410820a99 100644 --- a/sound/isa/wavefront/wavefront_synth.c +++ b/sound/isa/wavefront/wavefront_synth.c | |||
@@ -1648,9 +1648,10 @@ snd_wavefront_synth_ioctl (struct snd_hwdep *hw, struct file *file, | |||
1648 | 1648 | ||
1649 | card = (struct snd_card *) hw->card; | 1649 | card = (struct snd_card *) hw->card; |
1650 | 1650 | ||
1651 | snd_assert(card != NULL, return -ENODEV); | 1651 | if (snd_BUG_ON(!card)) |
1652 | 1652 | return -ENODEV; | |
1653 | snd_assert(card->private_data != NULL, return -ENODEV); | 1653 | if (snd_BUG_ON(!card->private_data)) |
1654 | return -ENODEV; | ||
1654 | 1655 | ||
1655 | acard = card->private_data; | 1656 | acard = card->private_data; |
1656 | dev = &acard->wavefront; | 1657 | dev = &acard->wavefront; |