diff options
Diffstat (limited to 'sound/synth/emux/emux.c')
-rw-r--r-- | sound/synth/emux/emux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c index c89d2ea594b..f16a3fce459 100644 --- a/sound/synth/emux/emux.c +++ b/sound/synth/emux/emux.c | |||
@@ -93,10 +93,10 @@ int snd_emux_register(struct snd_emux *emu, struct snd_card *card, int index, ch | |||
93 | int err; | 93 | int err; |
94 | struct snd_sf_callback sf_cb; | 94 | struct snd_sf_callback sf_cb; |
95 | 95 | ||
96 | snd_assert(emu->hw != NULL, return -EINVAL); | 96 | if (snd_BUG_ON(!emu->hw || emu->max_voices <= 0)) |
97 | snd_assert(emu->max_voices > 0, return -EINVAL); | 97 | return -EINVAL; |
98 | snd_assert(card != NULL, return -EINVAL); | 98 | if (snd_BUG_ON(!card || !name)) |
99 | snd_assert(name != NULL, return -EINVAL); | 99 | return -EINVAL; |
100 | 100 | ||
101 | emu->card = card; | 101 | emu->card = card; |
102 | emu->name = kstrdup(name, GFP_KERNEL); | 102 | emu->name = kstrdup(name, GFP_KERNEL); |