diff options
author | jmg <jmg@FreeBSD.org> | 2006-09-14 03:47:59 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-09-14 03:47:59 +0000 |
commit | 140b3626da483266851d6af04df65d138d06ab2e (patch) | |
tree | 9f4bf06de9001fd82e1ebfa49e63bdd978795235 /sys/dev | |
parent | eb84049d817bf05e20421db40cf3c43a17156a20 (diff) | |
download | FreeBSD-src-140b3626da483266851d6af04df65d138d06ab2e.zip FreeBSD-src-140b3626da483266851d6af04df65d138d06ab2e.tar.gz |
Only treat positive values as errors...
Pointed out by: wsk
Message-ID: <45060FC4.2090308@gddsn.org.cn>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sio/sio_pccard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sio/sio_pccard.c b/sys/dev/sio/sio_pccard.c index c03c93d..7bdb755 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)); } |