Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb remove hack for PR/42848



details:   https://anonhg.NetBSD.org/src/rev/9f3c24662dd9
branches:  trunk
changeset: 329073:9f3c24662dd9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 04 22:18:38 2014 +0000

description:
remove hack for PR/42848

diffstat:

 sys/dev/usb/ucom.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r aeccc051cd14 -r 9f3c24662dd9 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Sun May 04 20:43:30 2014 +0000
+++ b/sys/dev/usb/ucom.c        Sun May 04 22:18:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.103 2014/03/16 05:20:29 dholland Exp $      */
+/*     $NetBSD: ucom.c,v 1.104 2014/05/04 22:18:38 christos Exp $      */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.103 2014/03/16 05:20:29 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.104 2014/05/04 22:18:38 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -368,10 +368,6 @@
        int s, i;
        int error;
 
-       /* XXX This is a hopefully temporary stopgap for kern/42848. */
-       if ((flag & (FREAD|FWRITE)) != (FREAD|FWRITE))
-               return (EINVAL);
-
        if (sc == NULL)
                return (ENXIO);
 



Home | Main Index | Thread Index | Old Index