Only treat positive values as errors...

Pointed out by:	wsk
Message-ID: <45060FC4.2090308@gddsn.org.cn>
This commit is contained in:
John-Mark Gurney 2006-09-14 03:47:59 +00:00
parent e2e1ab1c94
commit 9773a00fa7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162294

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