summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-07-22 03:59:22 +0000
committerwpaul <wpaul@FreeBSD.org>1999-07-22 03:59:22 +0000
commit4e77d278204094cfe64cfc8748a47ebea9d9d7ba (patch)
treec84ee3223e5678a01316d55cec449f9ddbbcc43e
parent0d2dd20d4a50fefda45acfafe1b106d23fa2c7b7 (diff)
downloadFreeBSD-src-4e77d278204094cfe64cfc8748a47ebea9d9d7ba.zip
FreeBSD-src-4e77d278204094cfe64cfc8748a47ebea9d9d7ba.tar.gz
Small tweak to newbus changes: return error status on failure correctly
in xl_attach() (not a problem if the attach never fails, but if it does the function would still return 0, which is wrong).
-rw-r--r--sys/pci/if_xl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index fbe1e5c..fad4143 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -1412,7 +1412,7 @@ xl_attach(dev)
caddr_t roundptr;
struct xl_type *p;
u_int16_t phy_vid, phy_did, phy_sts;
- int unit, error, rid;
+ int unit, error = 0, rid;
s = splimp();
@@ -1812,7 +1812,7 @@ xl_attach(dev)
fail:
splx(s);
- return(0);
+ return(error);
}
static int xl_detach(dev)
OpenPOWER on IntegriCloud