summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn_isa.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-05-07 18:20:40 +0000
committerimp <imp@FreeBSD.org>2000-05-07 18:20:40 +0000
commitd39c1e880e18aa7b357fdc7cd672c18a2f55290c (patch)
tree4ae0cce42ed2444298e330a628204e930d6eaed2 /sys/dev/sn/if_sn_isa.c
parent1d9c3ddb36fcbf193c305b31726f46beb0028405 (diff)
downloadFreeBSD-src-d39c1e880e18aa7b357fdc7cd672c18a2f55290c.zip
FreeBSD-src-d39c1e880e18aa7b357fdc7cd672c18a2f55290c.tar.gz
Don't claim devices that we fail to probe for. Reverse the sense of a test
so that we return failure when we've failed and succeed when we succeed. Otherwise, users always get a sn device :-(. PR: 18431 Submitted by: <sanpei@sanpei.org> MIHIRA Yoshiro-san
Diffstat (limited to 'sys/dev/sn/if_sn_isa.c')
-rw-r--r--sys/dev/sn/if_sn_isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sn/if_sn_isa.c b/sys/dev/sn/if_sn_isa.c
index ab34a23..e32b1bb 100644
--- a/sys/dev/sn/if_sn_isa.c
+++ b/sys/dev/sn/if_sn_isa.c
@@ -63,8 +63,8 @@ sn_isa_probe (device_t dev)
if (isa_get_logicalid(dev)) /* skip PnP probes */
return (ENXIO);
if (sn_probe(dev, 0) != 0)
- return (0);
- return (ENXIO);
+ return (ENXIO);
+ return (0);
}
static int
OpenPOWER on IntegriCloud