From 44a3f720d9072945d2faf7d09a4c694ed90858f8 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sat, 21 Apr 2007 12:47:43 +0000 Subject: simplify some maths in fw_load a bit --- sys/dev/pci/if_tht.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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 @@ -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; } -- cgit v1.2.3