summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pccard/pccard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c
index 49a35af..055cdfd 100644
--- a/sys/dev/pccard/pccard.c
+++ b/sys/dev/pccard/pccard.c
@@ -759,7 +759,7 @@ pccard_compat_do_attach(device_t bus, device_t dev)
int err;
err = CARD_COMPAT_PROBE(dev);
- if (err == 0)
+ if (err <= 0)
err = CARD_COMPAT_ATTACH(dev);
return (err);
}
OpenPOWER on IntegriCloud