diff --git a/sys/dev/usb/umidi.c b/sys/dev/usb/umidi.c index e5b355791f2f..8b82dde84091 100644 --- a/sys/dev/usb/umidi.c +++ b/sys/dev/usb/umidi.c @@ -1,4 +1,4 @@ -/* $NetBSD: umidi.c,v 1.59 2012/02/14 19:28:22 mrg Exp $ */ +/* $NetBSD: umidi.c,v 1.60 2012/02/19 20:20:31 mrg Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.59 2012/02/14 19:28:22 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.60 2012/02/19 20:20:31 mrg Exp $"); #include #include @@ -391,7 +391,7 @@ umidi_channelmsg(void *addr, int status, int channel, u_char *msg, { struct umidi_mididev *mididev = addr; - if (!mididev->out_jack || !mididev->opened || !mididev->closing) + if (!mididev->out_jack || !mididev->opened || mididev->closing) return EIO; return out_jack_output(mididev->out_jack, msg, len, (status>>4)&0xf); @@ -403,7 +403,7 @@ umidi_commonmsg(void *addr, int status, u_char *msg, int len) struct umidi_mididev *mididev = addr; int cin; - if (!mididev->out_jack || !mididev->opened || !mididev->closing) + if (!mididev->out_jack || !mididev->opened || mididev->closing) return EIO; switch ( len ) { @@ -422,7 +422,7 @@ umidi_sysex(void *addr, u_char *msg, int len) struct umidi_mididev *mididev = addr; int cin; - if (!mididev->out_jack || !mididev->opened || !mididev->closing) + if (!mididev->out_jack || !mididev->opened || mididev->closing) return EIO; switch ( len ) { @@ -441,7 +441,7 @@ umidi_rtmsg(void *addr, int d) struct umidi_mididev *mididev = addr; u_char msg = d; - if (!mididev->out_jack || !mididev->opened || !mididev->closing) + if (!mididev->out_jack || !mididev->opened || mididev->closing) return EIO; return out_jack_output(mididev->out_jack, &msg, 1, 0xf);