Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/dwc2 Remove daft KASSERTs



details:   https://anonhg.NetBSD.org/src/rev/e5e5d155e121
branches:  trunk
changeset: 790812:e5e5d155e121
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Oct 22 09:23:34 2013 +0000

description:
Remove daft KASSERTs

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e0fdb9f1110a -r e5e5d155e121 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Tue Oct 22 08:08:51 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Tue Oct 22 09:23:34 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.12 2013/10/15 07:38:37 skrll Exp $  */
+/*     $NetBSD: dwc2.c,v 1.13 2013/10/22 09:23:34 skrll Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.12 2013/10/15 07:38:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.13 2013/10/22 09:23:34 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1318,10 +1318,8 @@
 
        /* XXXNH this shouldn't be required */
        if (xfertype == UE_CONTROL && len == 0) {
-               KASSERT(xfertype == UE_CONTROL);
                dwc2_urb->usbdma = &dpipe->req_dma;
        } else {
-               KASSERT(xfertype != UE_CONTROL || len != 0);
                dwc2_urb->usbdma = &xfer->dmabuf;
        }
        dwc2_urb->buf = KERNADDR(dwc2_urb->usbdma, 0);



Home | Main Index | Thread Index | Old Index