diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-28 10:06:38 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-04-28 10:06:38 +0000 |
commit | ea9a477bbb3b00db376f5fd7eaa9fe0c406d1acf (patch) | |
tree | 60a0bfa1a4580b61984362bf28c3e54fc082a3ce /sys/dev | |
parent | 654507c1af2a493c2591e46875ecbd91e1ae650b (diff) |
Move an opening brace so a loop that delays while waiting
for hardware to set a ready bit actually delays.
ok krw@ deraadt@ 'sounds correct' miod@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/wds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/wds.c b/sys/dev/isa/wds.c index d421a62a07d..f6166388d6f 100644 --- a/sys/dev/isa/wds.c +++ b/sys/dev/isa/wds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wds.c,v 1.40 2013/11/15 16:46:27 brad Exp $ */ +/* $OpenBSD: wds.c,v 1.41 2014/04/28 10:06:37 jsg Exp $ */ /* $NetBSD: wds.c,v 1.13 1996/11/03 16:20:31 mycroft Exp $ */ #undef WDSDIAG @@ -721,8 +721,8 @@ wds_find(struct isa_attach_args *ia, struct wds_softc *sc) * Sending a command causes the CMDRDY bit to clear. */ c = bus_space_read_1(iot, ioh, WDS_STAT); - for (i = 0; i < 4; i++) - if ((bus_space_read_1(iot, ioh, WDS_STAT) & WDSS_RDY) != 0) { + for (i = 0; i < 4; i++) { + if ((bus_space_read_1(iot, ioh, WDS_STAT) & WDSS_RDY) != 0) goto ready; delay(10); } |