Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb KNF (whitespace)



details:   https://anonhg.NetBSD.org/src/rev/25b8c7fd90cd
branches:  nick-nhusb
changeset: 334311:25b8c7fd90cd
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 09 08:35:23 2015 +0000

description:
KNF (whitespace)

diffstat:

 sys/dev/usb/uhci.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 85476d7c31c1 -r 25b8c7fd90cd sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Sun Nov 08 21:02:31 2015 +0000
+++ b/sys/dev/usb/uhci.c        Mon Nov 09 08:35:23 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.53 2015/11/08 21:02:31 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.54 2015/11/09 08:35:23 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.53 2015/11/08 21:02:31 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.54 2015/11/09 08:35:23 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1763,7 +1763,7 @@
        else
                cmd &= ~UHCI_CMD_RS;
        UHCICMD(sc, cmd);
-       for(n = 0; n < 10; n++) {
+       for (n = 0; n < 10; n++) {
                running = !(UREAD2(sc, UHCI_STS) & UHCI_STS_HCH);
                /* return when we've entered the state we want */
                if (run == running) {
@@ -1855,7 +1855,7 @@
                          UHCI_QH_ALIGN, &dma);
                if (err)
                        return NULL;
-               for(i = 0; i < UHCI_SQH_CHUNK; i++) {
+               for (i = 0; i < UHCI_SQH_CHUNK; i++) {
                        offs = i * UHCI_SQH_SIZE;
                        sqh = KERNADDR(&dma, offs);
                        sqh->physaddr = DMAADDR(&dma, offs);
@@ -2452,7 +2452,7 @@
         */
        usb_delay_ms_locked(&sc->sc_bus, 2, &sc->sc_lock);
 
-       for(i = 0; i < npoll; i++)
+       for (i = 0; i < npoll; i++)
                uhci_free_sqh(sc, upipe->intr.qhs[i]);
        kmem_free(upipe->intr.qhs, npoll * sizeof(uhci_soft_qh_t *));
 
@@ -3014,7 +3014,7 @@
        KASSERT(sc->sc_bus.ub_usepolling || mutex_owned(&sc->sc_lock));
 
        npoll = upipe->intr.npoll;
-       for(i = 0; i < npoll; i++) {
+       for (i = 0; i < npoll; i++) {
                sqh = upipe->intr.qhs[i];
                sqh->elink = NULL;
                sqh->qh.qh_elink = htole32(UHCI_PTR_T);
@@ -3257,7 +3257,7 @@
        }
        DPRINTF("bw=%d offs=%d", bestbw, bestoffs, 0, 0);
        mutex_enter(&sc->sc_lock);
-       for(i = 0; i < npoll; i++) {
+       for (i = 0; i < npoll; i++) {
                upipe->intr.qhs[i] = sqh = uhci_alloc_sqh(sc);
                sqh->elink = NULL;
                sqh->qh.qh_elink = htole32(UHCI_PTR_T);
@@ -3270,7 +3270,7 @@
 #undef MOD
 
        /* Enter QHs into the controller data structures. */
-       for(i = 0; i < npoll; i++)
+       for (i = 0; i < npoll; i++)
                uhci_add_intr(sc, upipe->intr.qhs[i]);
        mutex_exit(&sc->sc_lock);
 



Home | Main Index | Thread Index | Old Index