From f7681887b96b09ede50142fc2c8e9932ccf965e2 Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Mon, 12 May 2008 06:59:20 +0000 Subject: Pass correct argument to timeout_set so that the timeout can break the loop as intended. ok dlg@ --- sys/dev/pci/if_tht.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c index 05708f68738..aada17fe84a 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.114 2008/04/11 11:34:00 thib Exp $ */ +/* $OpenBSD: if_tht.c,v 1.115 2008/05/12 06:59:19 canacar Exp $ */ /* * Copyright (c) 2007 David Gwynne @@ -1736,7 +1736,7 @@ tht_fw_load(struct tht_softc *sc) buf += wrlen; } - timeout_set(&ticker, tht_fw_tick, &ticker); + timeout_set(&ticker, tht_fw_tick, &ok); timeout_add(&ticker, 2*hz); while (ok) { if (tht_read(sc, THT_REG_INIT_STATUS) != 0) { -- cgit v1.2.3