Only treat positive values as errors...

Pointed out by:	wsk
Message-ID: <45060FC4.2090308@gddsn.org.cn>
This commit is contained in:
jmg 2006-09-14 03:47:59 +00:00
parent eb84049d81
commit 140b3626da

View File

@ -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));
}