summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-08-30 09:16:53 +0000
committermsmith <msmith@FreeBSD.org>2001-08-30 09:16:53 +0000
commit67f0d41957392f0f9db82e773f5179f1068c2faa (patch)
treeb9805e318590aac961925e304165052c10c2bd2b /sys/i386
parent4b0205f9914313437a3afe43d9d7a25f7f624cd5 (diff)
downloadFreeBSD-src-67f0d41957392f0f9db82e773f5179f1068c2faa.zip
FreeBSD-src-67f0d41957392f0f9db82e773f5179f1068c2faa.tar.gz
Correct usage of ISA_PNP_PROBE
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/mse.c4
-rw-r--r--sys/i386/isa/pcaudio.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 7d54682..81b9bb4 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -288,8 +288,8 @@ mse_probe(dev)
/* check PnP IDs */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, mse_ids);
- if (error == ENXIO)
- return ENXIO;
+ if (error != ENOENT)
+ return error;
sc = device_get_softc(dev);
rid = 0;
diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c
index 1e4d4e9a..ebfce44 100644
--- a/sys/i386/isa/pcaudio.c
+++ b/sys/i386/isa/pcaudio.c
@@ -330,10 +330,7 @@ pcaprobe(device_t dev)
int error;
/* Check isapnp ids */
- error = ISA_PNP_PROBE(device_get_parent(dev), dev, pca_ids);
- if (error == ENXIO)
- return ENXIO;
- return 0;
+ return(ISA_PNP_PROBE(device_get_parent(dev), dev, pca_ids));
}
OpenPOWER on IntegriCloud