summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-25 04:59:11 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-05-25 04:59:11 +0000
commit11386316fed2175fa76372624b2b56d53614fca5 (patch)
tree2b5b9c1b74052a7af3cace29c7aecacccc2bae91 /sys
parent9784f6d4cb3fdf98f87e1b3b0ff352da6c6c13e4 (diff)
Use the correct value when checking whether a loop timed out.
ok krw@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index fec67d533f5..a5856001f67 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.25 2004/04/12 06:56:42 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.26 2004/05/25 04:59:10 mcbride Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2001
@@ -289,7 +289,7 @@ bge_vpd_readbyte(sc, addr)
break;
}
- if (i == BGE_TIMEOUT) {
+ if (i == BGE_TIMEOUT * 10) {
printf("%s: VPD read timed out\n", sc->bge_dev.dv_xname);
return(0);
}
@@ -397,7 +397,7 @@ bge_eeprom_getbyte(sc, addr, dest)
break;
}
- if (i == BGE_TIMEOUT) {
+ if (i == BGE_TIMEOUT * 10) {
printf("%s: eeprom read timed out\n", sc->bge_dev.dv_xname);
return(0);
}