diff options
author | 1996-05-27 07:57:34 +0000 | |
---|---|---|
committer | 1996-05-27 07:57:34 +0000 | |
commit | d50c5d074df04b25d33a6a7a99b0aa9bae9d12cc (patch) | |
tree | 9f1da417f2ce5da485b4abce9f3b265ad2d367d8 /sys/dev | |
parent | /* /* */ is bad (diff) | |
download | wireguard-openbsd-d50c5d074df04b25d33a6a7a99b0aa9bae9d12cc.tar.xz wireguard-openbsd-d50c5d074df04b25d33a6a7a99b0aa9bae9d12cc.zip |
silence getresult during probe
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/mcd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c index 3ef11fa2e49..132c9a733bd 100644 --- a/sys/dev/isa/mcd.c +++ b/sys/dev/isa/mcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcd.c,v 1.12 1996/05/26 00:27:25 deraadt Exp $ */ +/* $OpenBSD: mcd.c,v 1.13 1996/05/27 07:57:34 deraadt Exp $ */ /* $NetBSD: mcd.c,v 1.49 1996/05/12 23:53:11 mycroft Exp $ */ /* @@ -118,6 +118,7 @@ struct mcd_softc { char *type; u_char readcmd; + u_char attached; int flags; #define MCDF_LOCKED 0x01 #define MCDF_WANTED 0x02 @@ -819,6 +820,7 @@ mcdprobe(parent, match, aux) break; } + sc->attached = 1; ia->ia_iosize = 4; ia->ia_msize = 0; return 1; @@ -870,7 +872,7 @@ mcd_getresult(sc, res) if ((x = mcd_getreply(sc)) < 0) { if (sc->debug) printf(" timeout\n"); - else + else if (sc->attached) printf("%s: timeout in getresult\n", sc->sc_dev.dv_xname); return EIO; } |