summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tht.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_tht.c')
-rw-r--r--sys/dev/pci/if_tht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index c16795732b5..3228aeb736e 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.40 2007/04/21 12:40:42 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.41 2007/04/21 12:47:42 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1039,8 +1039,8 @@ tht_fw_load(struct tht_softc *sc)
buf = fw;
while (fwlen > 0) {
- while ((wrlen = tht_fifo_ready(sc, &sc->sc_txt) -
- THT_FIFO_GAP) <= 0) {
+ while ((wrlen = tht_fifo_ready(sc, &sc->sc_txt)) <=
+ THT_FIFO_GAP) {
if (tsleep(sc, PCATCH, "thtfw", 1) == EINTR)
goto err;
}