Message ID | 1457391064-6660-54-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index a775984..f75d165 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c @@ -1178,7 +1178,7 @@ static long snd_rawmidi_kernel_write1(struct snd_rawmidi_substream *substream, long count1, result; struct snd_rawmidi_runtime *runtime = substream->runtime; - if (snd_BUG_ON(!kernelbuf && !userbuf)) + if (!kernelbuf && !userbuf) return -EINVAL; if (snd_BUG_ON(!runtime->buffer)) return -EINVAL;