X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Fcore%2Frawmidi.c;h=2606592931e28a0d93e9ac4290eea6f23cbab9db;hp=1bb95aeea084d33cd8225c53257058a23c25cf4e;hb=6983e940bf30cebef41362aca86e1e53cd9ae8a7;hpb=18f3124816ccc70a7625a145e732ac902aeb924c diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 1bb95aeea084..2606592931e2 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c @@ -1162,7 +1162,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;