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 Use TAILQ_FOREACH. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/7db5b1358d80
branches:  nick-nhusb
changeset: 334398:7db5b1358d80
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Feb 16 07:30:46 2016 +0000

description:
Use TAILQ_FOREACH.  No functional change.

diffstat:

 sys/dev/usb/uhci.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 9c63d58b621c -r 7db5b1358d80 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Tue Feb 16 07:16:47 2016 +0000
+++ b/sys/dev/usb/uhci.c        Tue Feb 16 07:30:46 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.264.4.59 2016/02/15 17:00:27 skrll Exp $    */
+/*     $NetBSD: uhci.c,v 1.264.4.60 2016/02/16 07:30:46 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.59 2016/02/15 17:00:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.264.4.60 2016/02/16 07:30:46 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -967,7 +967,7 @@
        struct uhci_xfer *ux;
 
        printf("interrupt list:\n");
-       for (ux = TAILQ_FIRST(&sc->sc_intrhead); ux; ux = TAILQ_NEXT(ux, ux_list))
+       TAILQ_FOREACH(ux, &sc->sc_intrhead, ux_list)
                uhci_dump_ii(ux);
 }
 
@@ -1746,8 +1746,7 @@
 
        /* Timeout */
        DPRINTF("timeout", 0, 0, 0, 0);
-       for (ux = TAILQ_FIRST(&sc->sc_intrhead); ux != NULL;
-           ux = TAILQ_NEXT(ux, ux_list))
+       TAILQ_FOREACH(ux, &sc->sc_intrhead, ux_list)
                if (&ux->ux_xfer == xfer)
                        break;
 



Home | Main Index | Thread Index | Old Index