summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-03-26 21:47:52 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-03-26 21:47:52 +0000
commit4a8a2378aeebf4afb7f090031193a8fc582384e2 (patch)
tree355411f3c305f3f680c717ffae7872e01070652f
parentd283d395a7572c379a6fafa318e589400f94a0bd (diff)
Fix typos.
-rw-r--r--sys/dev/usb/uhci.c8
-rw-r--r--sys/dev/usb/usb.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 37c34d4924c..184c2e930ae 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.8 2000/03/26 15:53:07 aaron Exp $ */
+/* $OpenBSD: uhci.c,v 1.9 2000/03/26 21:47:51 aaron Exp $ */
/* $NetBSD: uhci.c,v 1.87 2000/02/29 21:37:01 augustss Exp $ */
/*
@@ -59,7 +59,7 @@
#include <sys/module.h>
#include <sys/bus.h>
#include <machine/bus_pio.h>
-#if defined(DIAGNOSTIC) && defined(__i386)
+#if defined(DIAGNOSTIC) && defined(__i386__)
#include <machine/cpu.h>
#endif
#endif
@@ -705,7 +705,7 @@ uhci_dump_qhs(sqh)
{
uhci_dump_qh(sqh);
- /* uhci_dump_sqh displays all the QHs and TDs from the given QH onwards
+ /* uhci_dump_qhs displays all the QHs and TDs from the given QH onwards
* Traverses sideways first, then down.
*
* QH1
@@ -1396,7 +1396,7 @@ uhci_alloc_sqh(sc)
err = usb_allocmem(&sc->sc_bus, UHCI_SQH_SIZE * UHCI_SQH_CHUNK,
UHCI_QH_ALIGN, &dma);
if (err)
- return 0;
+ return (0);
for(i = 0; i < UHCI_SQH_CHUNK; i++) {
offs = i * UHCI_SQH_SIZE;
sqh = (uhci_soft_qh_t *)((char *)KERNADDR(&dma) +offs);
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 22a3b3777cd..dc3b352ddb1 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb.c,v 1.8 2000/03/26 08:39:46 aaron Exp $ */
+/* $OpenBSD: usb.c,v 1.9 2000/03/26 21:47:51 aaron Exp $ */
/* $NetBSD: usb.c,v 1.41 2000/03/16 00:46:38 augustss Exp $ */
/*
@@ -236,7 +236,7 @@ USB_ATTACH(usb)
* until the USB event thread is running, which means that
* the keyboard will not work until after cold boot.
*/
- if (cold && (sc->sc_dev.dv_cfdata->cf_flags & 1)
+ if (cold && (sc->sc_dev.dv_cfdata->cf_flags & 1))
dev->hub->explore(sc->sc_bus->root_hub);
#endif
} else {
@@ -539,7 +539,7 @@ usbpoll(dev, events, p)
{
int revents, mask, s;
- if (minor(dev) != USB_DEV_MINOR) {
+ if (minor(dev) == USB_DEV_MINOR) {
revents = 0;
mask = POLLIN | POLLRDNORM;
@@ -550,7 +550,7 @@ usbpoll(dev, events, p)
selrecord(p, &usb_selevent);
splx(s);
- return(revents);
+ return (revents);
} else {
#if defined(__FreeBSD__)
/* This part should be deleted when kthreads is available */
@@ -606,6 +606,7 @@ usb_discover(sc)
#if defined(__FreeBSD__)
splx(s);
#endif
+
return (USBD_NORMAL_COMPLETION);
}