summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 04:18:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-25 04:18:06 +0000
commit5486e21b5649eacf095380591bd2d20f183b8831 (patch)
tree3fa699243be511efdaf3f97bc7ae8c8b72e7e27f /sys
parentce8a7f0059fec0ea53cd8c465214c0d6fa416e17 (diff)
im an idiot. for (;;) { } while (condition); loops forever, no matter what
the condition is.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 4a7678d876d..316337320b0 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.59 2007/04/25 04:16:44 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.60 2007/04/25 04:18:05 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -988,7 +988,7 @@ tht_txf(struct tht_softc *sc)
tht_fifo_pre(sc, &sc->sc_txf);
- for (;;) {
+ do {
tht_fifo_read(sc, &sc->sc_txf, &txf, sizeof(txf));
pkt = &sc->sc_tx_list.tpl_pkts[txf.uid];