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 remove curproc references



details:   https://anonhg.NetBSD.org/src/rev/e98a2b3f810f
branches:  jmcneill-usbmp
changeset: 771814:e98a2b3f810f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Feb 25 12:53:34 2012 +0000

description:
remove curproc references

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 da14b30c742c -r e98a2b3f810f sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c      Sat Feb 25 10:26:23 2012 +0000
+++ b/sys/dev/usb/if_kue.c      Sat Feb 25 12:53:34 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_kue.c,v 1.74.12.1 2012/02/18 07:35:05 mrg Exp $     */
+/*     $NetBSD: if_kue.c,v 1.74.12.2 2012/02/25 12:53:34 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.74.12.1 2012/02/18 07:35:05 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.74.12.2 2012/02/25 12:53:34 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 da14b30c742c -r e98a2b3f810f sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Sat Feb 25 10:26:23 2012 +0000
+++ b/sys/dev/usb/ohci.c        Sat Feb 25 12:53:34 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.218.6.13 2012/02/25 10:26:23 mrg Exp $      */
+/*     $NetBSD: ohci.c,v 1.218.6.14 2012/02/25 12:53:34 mrg Exp $      */
 /*     $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $       */
 
 /*
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.218.6.13 2012/02/25 10:26:23 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.218.6.14 2012/02/25 12:53:34 mrg Exp $");
 
 #include "opt_usb.h"
 
@@ -2323,7 +2323,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 da14b30c742c -r e98a2b3f810f sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sat Feb 25 10:26:23 2012 +0000
+++ b/sys/dev/usb/uhci.c        Sat Feb 25 12:53:34 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.240.6.12 2012/02/25 10:26:23 mrg Exp $      */
+/*     $NetBSD: uhci.c,v 1.240.6.13 2012/02/25 12:53:34 mrg Exp $      */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.240.6.12 2012/02/25 10:26:23 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.240.6.13 2012/02/25 12:53:34 mrg Exp $");
 
 #include "opt_usb.h"
 
@@ -2152,7 +2152,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