Source-Changes-HG archive

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

[src/netbsd-2-0]: src/sys/dev/pci Pullup rev 1.58 (requested by thorpej in ti...



details:   https://anonhg.NetBSD.org/src/rev/066f31aab624
branches:  netbsd-2-0
changeset: 561282:066f31aab624
user:      jmc <jmc%NetBSD.org@localhost>
date:      Sat Jun 05 04:59:21 2004 +0000

description:
Pullup rev 1.58 (requested by thorpej in ticket #441)

twe_ccb_map(): Remove the DEBUG panic case of "unknown" S/G list
offset.

diffstat:

 sys/dev/pci/twe.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 91b9ef968409 -r 066f31aab624 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Sat Jun 05 04:58:40 2004 +0000
+++ b/sys/dev/pci/twe.c Sat Jun 05 04:59:21 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twe.c,v 1.54.2.1 2004/05/30 07:10:42 tron Exp $        */
+/*     $NetBSD: twe.c,v 1.54.2.2 2004/06/05 04:59:21 jmc Exp $ */
 
 /*-
  * Copyright (c) 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.54.2.1 2004/05/30 07:10:42 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.54.2.2 2004/06/05 04:59:21 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1473,10 +1473,13 @@
                        tc->tc_args.io.sgl[i].tsg_length = 0;
                }
                break;
-#ifdef DEBUG
        default:
-               panic("twe_ccb_map: oops");
-#endif
+               /*
+                * In all likelihood, this is a command passed from
+                * management tools in userspace where no S/G list is
+                * necessary because no data is being passed.
+                */
+               break;
        }
 
        if ((ccb->ccb_flags & TWE_CCB_DATA_IN) != 0)



Home | Main Index | Thread Index | Old Index