summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 12:47:43 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-21 12:47:43 +0000
commit44a3f720d9072945d2faf7d09a4c694ed90858f8 (patch)
tree421ecc4fe7d889224b9014f91eeab5d0a5bb1982
parent802451b558493b5138f2f2d17a4d9d4efbe18599 (diff)
simplify some maths in fw_load a bit
-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;
}