Module Name: src
Committed By: jakllsch
Date: Sun Dec 15 18:50:25 UTC 2013
Modified Files:
src/sys/dev/usb: ohci.c
Log Message:
Correct a KASSERT's logic (SET vs. GET).
To generate a diff of this commit:
cvs rdiff -u -r1.246 -r1.247 src/sys/dev/usb/ohci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/ohci.c
diff -u src/sys/dev/usb/ohci.c:1.246 src/sys/dev/usb/ohci.c:1.247
--- src/sys/dev/usb/ohci.c:1.246 Sun Dec 15 10:25:23 2013
+++ src/sys/dev/usb/ohci.c Sun Dec 15 18:50:25 2013
@@ -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 @@ ohci_device_request(usbd_xfer_handle xfe
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;