diff options
Diffstat (limited to 'sound/drivers/dummy.c')
-rw-r--r-- | sound/drivers/dummy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 4e4c69e6cb4c..c873243e6713 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
@@ -565,7 +565,8 @@ static int __devinit snd_card_dummy_new_mixer(struct snd_dummy *dummy) | |||
565 | unsigned int idx; | 565 | unsigned int idx; |
566 | int err; | 566 | int err; |
567 | 567 | ||
568 | snd_assert(dummy != NULL, return -EINVAL); | 568 | if (snd_BUG_ON(!dummy)) |
569 | return -EINVAL; | ||
569 | spin_lock_init(&dummy->mixer_lock); | 570 | spin_lock_init(&dummy->mixer_lock); |
570 | strcpy(card->mixername, "Dummy Mixer"); | 571 | strcpy(card->mixername, "Dummy Mixer"); |
571 | 572 | ||