o Minor tweak to error processing in ep_alloc.
This commit is contained in:
imp 2003-11-02 20:10:09 +00:00
parent 4683161423
commit 8f6dd34121

View File

@ -120,7 +120,7 @@ eeprom_rdy(struct ep_softc *sc)
if (i >= MAX_EEPROMBUSY) {
printf("ep%d: eeprom failed to come ready.\n", sc->unit);
return (ENXIO);
return (ENXIO);
}
return (0);
@ -217,6 +217,8 @@ ep_alloc(device_t dev)
sc->epb.res_cfg = result;
bad:
if (error != 0)
ep_free(dev);
return (error);
}