summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-04-05 19:15:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-04-05 19:15:53 +0000
commita2882e85458e5f2b41d1b0e31db4f5d52e11ecc1 (patch)
tree3df3d35ce7c9b49cee96254b6afcc85c6aac09c4 /sys
parentecf818548017a8a5a74753890eda995b94e98502 (diff)
Change timeout detection from > or >= EAP_XXX_TIMEOUT to ==.
The > was wrong and >= is not needed (== is suuficient). OK krw@ From Patrick Latifi
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/eap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/eap.c b/sys/dev/pci/eap.c
index 7d7970d8950..f150af1a7ab 100644
--- a/sys/dev/pci/eap.c
+++ b/sys/dev/pci/eap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eap.c,v 1.17 2002/11/19 18:40:17 jason Exp $ */
+/* $OpenBSD: eap.c,v 1.18 2003/04/05 19:15:52 millert Exp $ */
/* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */
/*
@@ -300,7 +300,7 @@ eap1371_ready_codec(struct eap_softc *sc, u_int8_t a, u_int32_t wd)
break;
delay(1);
}
- if (to >= EAP_WRITE_TIMEOUT)
+ if (to == EAP_WRITE_TIMEOUT)
printf("%s: eap1371_ready_codec timeout 1\n",
sc->sc_dev.dv_xname);
@@ -314,7 +314,7 @@ eap1371_ready_codec(struct eap_softc *sc, u_int8_t a, u_int32_t wd)
break;
delay(1);
}
- if (to >= EAP_READ_TIMEOUT)
+ if (to == EAP_READ_TIMEOUT)
printf("%s: eap1371_ready_codec timeout 2\n",
sc->sc_dev.dv_xname);
@@ -324,7 +324,7 @@ eap1371_ready_codec(struct eap_softc *sc, u_int8_t a, u_int32_t wd)
break;
delay(1);
}
- if (to >= EAP_READ_TIMEOUT)
+ if (to == EAP_READ_TIMEOUT)
printf("%s: eap1371_ready_codec timeout 3\n",
sc->sc_dev.dv_xname);
@@ -349,7 +349,7 @@ eap1371_read_codec(void *sc_, u_int8_t a, u_int16_t *d)
if (!(EREAD4(sc, E1371_CODEC) & E1371_CODEC_WIP))
break;
}
- if (to > EAP_WRITE_TIMEOUT)
+ if (to == EAP_WRITE_TIMEOUT)
printf("%s: eap1371_read_codec timeout 1\n",
sc->sc_dev.dv_xname);
@@ -358,7 +358,7 @@ eap1371_read_codec(void *sc_, u_int8_t a, u_int16_t *d)
if (t & E1371_CODEC_VALID)
break;
}
- if (to > EAP_WRITE_TIMEOUT)
+ if (to == EAP_WRITE_TIMEOUT)
printf("%s: eap1371_read_codec timeout 2\n",
sc->sc_dev.dv_xname);