diff options
author | 2014-04-28 10:06:37 +0000 | |
---|---|---|
committer | 2014-04-28 10:06:37 +0000 | |
commit | 86f1b4cd6bf11a82004d66f084d7abdfecec4b4f (patch) | |
tree | 95d31f3175be0374cefdc6ff4c5d3e55c6d3fb9f /sys/dev/isa | |
parent | whitespace cleanup while reading result of florian's recent (very nice) work (diff) | |
download | wireguard-openbsd-86f1b4cd6bf11a82004d66f084d7abdfecec4b4f.tar.xz wireguard-openbsd-86f1b4cd6bf11a82004d66f084d7abdfecec4b4f.zip |
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/isa')
-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); } |