Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jmcneill-usbmp]: src/sys/dev/usb pullup umidi.c 1.60:



details:   https://anonhg.NetBSD.org/src/rev/349a5ae376c5
branches:  jmcneill-usbmp
changeset: 771791:349a5ae376c5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 19 21:01:52 2012 +0000

description:
pullup umidi.c 1.60:
>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@localhost> in PR 45909.  thanks!

diffstat:

 sys/dev/usb/umidi.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 1bdfa1178149 -r 349a5ae376c5 sys/dev/usb/umidi.c
--- a/sys/dev/usb/umidi.c       Sat Feb 18 07:58:23 2012 +0000
+++ b/sys/dev/usb/umidi.c       Sun Feb 19 21:01:52 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umidi.c,v 1.53.2.2 2012/02/18 07:35:10 mrg Exp $       */
+/*     $NetBSD: umidi.c,v 1.53.2.3 2012/02/19 21:01:52 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.53.2.2 2012/02/18 07:35:10 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.53.2.3 2012/02/19 21:01:52 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -387,7 +387,7 @@
 {
        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);
@@ -399,7 +399,7 @@
        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 ) {
@@ -418,7 +418,7 @@
        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 ) {
@@ -437,7 +437,7 @@
        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);



Home | Main Index | Thread Index | Old Index