From 909c0258260a884ceca2333a234a22abf1781463 Mon Sep 17 00:00:00 2001 From: bouyer Date: Wed, 3 Jun 2020 18:25:26 +0000 Subject: [PATCH] Don't print an error message on spurious interrupt. Way too noisy for Xen. --- sys/dev/ic/wdc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index ae328ef9ff7c..a72ba181d6c6 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc.c,v 1.302 2020/05/30 13:23:14 jdolecek Exp $ */ +/* $NetBSD: wdc.c,v 1.303 2020/06/03 18:25:26 bouyer Exp $ */ /* * Copyright (c) 1998, 2001, 2003 Manuel Bouyer. All rights reserved. @@ -58,7 +58,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.302 2020/05/30 13:23:14 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.303 2020/06/03 18:25:26 bouyer Exp $"); #include "opt_ata.h" #include "opt_wdc.h" @@ -892,10 +892,8 @@ wdcintr(void *arg) return (0); } - if ((chp->ch_flags & ATACH_IRQ_WAIT) == 0) { - __wdcerror(chp, "irq not expected"); + if ((chp->ch_flags & ATACH_IRQ_WAIT) == 0) goto ignore; - } xfer = ata_queue_get_active_xfer(chp); if (xfer == NULL) {