From 11386316fed2175fa76372624b2b56d53614fca5 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 25 May 2004 04:59:11 +0000 Subject: Use the correct value when checking whether a loop timed out. ok krw@ --- sys/dev/pci/if_bge.c | 6 +++--- 1 file 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); } -- cgit v1.2.3