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 checks against "!curproc".
details: https://anonhg.NetBSD.org/src/rev/655c317abdc5
branches: trunk
changeset: 777952:655c317abdc5
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Mar 10 23:01:07 2012 +0000
description:
remove checks against "!curproc".
diffstat:
sys/dev/usb/if_kue.c | 11 ++---------
sys/dev/usb/ohci.c | 6 +++---
sys/dev/usb/uhci.c | 6 +++---
3 files changed, 8 insertions(+), 15 deletions(-)
diffs (86 lines):
diff -r fb5aa9fb3a5a -r 655c317abdc5 sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c Sat Mar 10 22:55:28 2012 +0000
+++ b/sys/dev/usb/if_kue.c Sat Mar 10 23:01:07 2012 +0000
@@ -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 <wpaul%ee.columbia.edu@localhost>. 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 @@
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) {
diff -r fb5aa9fb3a5a -r 655c317abdc5 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Sat Mar 10 22:55:28 2012 +0000
+++ b/sys/dev/usb/ohci.c Sat Mar 10 23:01:07 2012 +0000
@@ -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 @@
return;
}
- if (xfer->device->bus->intr_context || !curproc)
+ if (xfer->device->bus->intr_context)
panic("ohci_abort_xfer: not in process context");
/*
diff -r fb5aa9fb3a5a -r 655c317abdc5 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c Sat Mar 10 22:55:28 2012 +0000
+++ b/sys/dev/usb/uhci.c Sat Mar 10 23:01:07 2012 +0000
@@ -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 @@
return;
}
- if (xfer->device->bus->intr_context || !curproc)
+ if (xfer->device->bus->intr_context)
panic("uhci_abort_xfer: not in process context");
/*
Home |
Main Index |
Thread Index |
Old Index