Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Correct a KASSERT's logic (SET vs. GET).



details:   https://anonhg.NetBSD.org/src/rev/7c7aaef5363b
branches:  trunk
changeset: 792005:7c7aaef5363b
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Dec 15 18:50:25 2013 +0000

description:
Correct a KASSERT's logic (SET vs. GET).

diffstat:

 sys/dev/usb/ohci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0c7feb4e628a -r 7c7aaef5363b sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Sun Dec 15 18:08:37 2013 +0000
+++ b/sys/dev/usb/ohci.c        Sun Dec 15 18:50:25 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.246 2013/12/15 10:25:23 skrll Exp $ */
+/*     $NetBSD: ohci.c,v 1.247 2013/12/15 18:50:25 jakllsch Exp $      */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.246 2013/12/15 10:25:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.247 2013/12/15 18:50:25 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1722,7 +1722,7 @@
            BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
 
         KASSERT(OHCI_ED_GET_FA(HTOO32(sed->ed.ed_flags)) == dev->address);
-        KASSERT(OHCI_ED_SET_MAXP(HTOO32(sed->ed.ed_flags)) ==
+        KASSERT(OHCI_ED_GET_MAXP(HTOO32(sed->ed.ed_flags)) ==
             UGETW(opipe->pipe.endpoint->edesc->wMaxPacketSize));
 
        next = stat;



Home | Main Index | Thread Index | Old Index