From cabd481fa9e4a7bc79b70726bc8efa3b74ea862d Mon Sep 17 00:00:00 2001 From: mycroft Date: Sat, 9 Apr 1994 03:43:36 +0000 Subject: Don't print a duplicate message about stray interrupts. --- sys/dev/ata/wd.c | 6 ++---- sys/dev/isa/wd.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'sys/dev') 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)]; -- cgit