diff options
| author | mycroft <mycroft@NetBSD.org> | 1994-04-09 03:43:36 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1994-04-09 03:43:36 +0000 |
| commit | cabd481fa9e4a7bc79b70726bc8efa3b74ea862d (patch) | |
| tree | 509ad746902425bb619d54b219ca7aa624f743b1 /sys/dev | |
| parent | c1c9f5d037d8e8e89b50f4103cd34c28de69f78e (diff) | |
Don't print a duplicate message about stray interrupts.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/wd.c | 6 | ||||
| -rw-r--r-- | sys/dev/isa/wd.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 354c5eeb0a6..45cacfe515f 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.76 1994/04/07 06:51:17 mycroft Exp $ + * $Id: wd.c,v 1.77 1994/04/09 03:43:36 mycroft Exp $ */ #define INSTRUMENT /* instrumentation stuff by Brad Parker */ @@ -712,10 +712,8 @@ wdcintr(wdc) /* Clear the pending interrupt. */ (void) inb(wdc->sc_iobase+wd_status); - if (!wdc->sc_q.b_active) { - printf("%s: extra interrupt\n", wdc->sc_dev.dv_xname); + if (!wdc->sc_q.b_active) return 0; - } bp = wdc->sc_q.b_forw->b_actf; wd = wdcd.cd_devs[WDUNIT(bp->b_dev)]; diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c index 354c5eeb0a6..45cacfe515f 100644 --- a/sys/dev/isa/wd.c +++ b/sys/dev/isa/wd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)wd.c 7.2 (Berkeley) 5/9/91 - * $Id: wd.c,v 1.76 1994/04/07 06:51:17 mycroft Exp $ + * $Id: wd.c,v 1.77 1994/04/09 03:43:36 mycroft Exp $ */ #define INSTRUMENT /* instrumentation stuff by Brad Parker */ @@ -712,10 +712,8 @@ wdcintr(wdc) /* Clear the pending interrupt. */ (void) inb(wdc->sc_iobase+wd_status); - if (!wdc->sc_q.b_active) { - printf("%s: extra interrupt\n", wdc->sc_dev.dv_xname); + if (!wdc->sc_q.b_active) return 0; - } bp = wdc->sc_q.b_forw->b_actf; wd = wdcd.cd_devs[WDUNIT(bp->b_dev)]; |
