Message ID | 1457483454-30115-30-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 6fc71a4..1d9dbed 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c @@ -1188,7 +1188,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;