From 9773a00fa7f0cc7d63c2bea482686141c0e316d9 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 14 Sep 2006 03:47:59 +0000 Subject: [PATCH] Only treat positive values as errors... Pointed out by: wsk Message-ID: <45060FC4.2090308@gddsn.org.cn> --- sys/dev/sio/sio_pccard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sio/sio_pccard.c b/sys/dev/sio/sio_pccard.c index c03c93d305a6..7bdb755d8051 100644 --- a/sys/dev/sio/sio_pccard.c +++ b/sys/dev/sio/sio_pccard.c @@ -92,7 +92,7 @@ sio_pccard_attach(device_t dev) #endif /* Do not probe IRQ - pccard doesn't turn on the interrupt line */ /* until bus_setup_intr */ - if ((err = sioprobe(dev, 0, 0UL, 1)) != 0) + if ((err = sioprobe(dev, 0, 0UL, 1)) > 0) return (err); return (sioattach(dev, 0, 0UL)); }