From: aaron Date: Sun, 26 Mar 2000 21:47:51 +0000 (+0000) Subject: Fix typos. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a25713e00d4776ebb1d960ecc6643f7281173c60;p=openbsd Fix typos. --- 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 #include #include -#if defined(DIAGNOSTIC) && defined(__i386) +#if defined(DIAGNOSTIC) && defined(__i386__) #include #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); }