Module Name:    src
Committed By:   skrll
Date:           Tue Feb 16 07:30:46 UTC 2016

Modified Files:
        src/sys/dev/usb [nick-nhusb]: uhci.c

Log Message:
Use TAILQ_FOREACH.  No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.264.4.59 -r1.264.4.60 src/sys/dev/usb/uhci.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/uhci.c
diff -u src/sys/dev/usb/uhci.c:1.264.4.59 src/sys/dev/usb/uhci.c:1.264.4.60
--- src/sys/dev/usb/uhci.c:1.264.4.59	Mon Feb 15 17:00:27 2016
+++ src/sys/dev/usb/uhci.c	Tue Feb 16 07:30:46 2016
@@ -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 @@ uhci_dump_iis(struct uhci_softc *sc)
 	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 @@ uhci_waitintr(uhci_softc_t *sc, struct u
 
 	/* 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;
 

Reply via email to