Module Name: src
Committed By: mrg
Date: Sat Mar 10 23:01:07 UTC 2012
Modified Files:
src/sys/dev/usb: if_kue.c ohci.c uhci.c
Log Message:
remove checks against "!curproc".
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/usb/if_kue.c
cvs rdiff -u -r1.221 -r1.222 src/sys/dev/usb/ohci.c
cvs rdiff -u -r1.245 -r1.246 src/sys/dev/usb/uhci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_kue.c
diff -u src/sys/dev/usb/if_kue.c:1.75 src/sys/dev/usb/if_kue.c:1.76
--- src/sys/dev/usb/if_kue.c:1.75 Thu Feb 2 19:43:07 2012
+++ src/sys/dev/usb/if_kue.c Sat Mar 10 23:01:07 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: if_kue.c,v 1.75 2012/02/02 19:43:07 tls Exp $ */
+/* $NetBSD: if_kue.c,v 1.76 2012/03/10 23:01:07 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <[email protected]>. All rights reserved.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.75 2012/02/02 19:43:07 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.76 2012/03/10 23:01:07 mrg Exp $");
#include "opt_inet.h"
@@ -986,13 +986,6 @@ kue_ioctl(struct ifnet *ifp, u_long comm
if (sc->kue_dying)
return (EIO);
-#ifdef DIAGNOSTIC
- if (!curproc) {
- printf("%s: no proc!!\n", device_xname(sc->kue_dev));
- return EIO;
- }
-#endif
-
s = splnet();
switch(command) {
Index: src/sys/dev/usb/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.221 src/sys/dev/usb/ohci.c:1.222
--- src/sys/dev/usb/ohci.c:1.221 Tue Mar 6 03:35:29 2012
+++ src/sys/dev/usb/ohci.c Sat Mar 10 23:01:07 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.221 2012/03/06 03:35:29 mrg Exp $ */
+/* $NetBSD: ohci.c,v 1.222 2012/03/10 23:01:07 mrg Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
/*
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.221 2012/03/06 03:35:29 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.222 2012/03/10 23:01:07 mrg Exp $");
#include "opt_usb.h"
@@ -2240,7 +2240,7 @@ ohci_abort_xfer(usbd_xfer_handle xfer, u
return;
}
- if (xfer->device->bus->intr_context || !curproc)
+ if (xfer->device->bus->intr_context)
panic("ohci_abort_xfer: not in process context");
/*
Index: src/sys/dev/usb/uhci.c
diff -u src/sys/dev/usb/uhci.c:1.245 src/sys/dev/usb/uhci.c:1.246
--- src/sys/dev/usb/uhci.c:1.245 Tue Mar 6 03:35:29 2012
+++ src/sys/dev/usb/uhci.c Sat Mar 10 23:01:07 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci.c,v 1.245 2012/03/06 03:35:29 mrg Exp $ */
+/* $NetBSD: uhci.c,v 1.246 2012/03/10 23:01:07 mrg Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.245 2012/03/06 03:35:29 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.246 2012/03/10 23:01:07 mrg Exp $");
#include "opt_usb.h"
@@ -2078,7 +2078,7 @@ uhci_abort_xfer(usbd_xfer_handle xfer, u
return;
}
- if (xfer->device->bus->intr_context || !curproc)
+ if (xfer->device->bus->intr_context)
panic("uhci_abort_xfer: not in process context");
/*