From 86f1b4cd6bf11a82004d66f084d7abdfecec4b4f Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 28 Apr 2014 10:06:37 +0000 Subject: [PATCH] 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@ --- sys/dev/isa/wds.c | 6 +++--- 1 file 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); } -- 2.20.1