fix the reversed logic in several uses of the new 'closing' member
introduced in the previous change. from Tom Ivar Helbekkmo <tih@hamartun.priv.no> in PR 45909. thanks!
This commit is contained in:
parent
fd6f00f4bf
commit
81a52e8014
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user