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).
This commit is contained in:
Bill Paul 1999-07-22 03:59:22 +00:00
parent 1f20fb8802
commit 137424578b

View File

@ -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)