Revert the unnecessicary addition of some braces in fxp_attach(). Don't

explicitly free the ifp in fxp_detach(), the call to fxp_release() takes
care of it.
This commit is contained in:
brooks 2005-06-10 20:42:02 +00:00
parent d2308ab790
commit 080645b93b

View File

@ -810,9 +810,8 @@ fxp_attach(device_t dev)
fail:
splx(s);
if (error) {
if (error)
fxp_release(sc);
}
return (error);
}
@ -904,7 +903,6 @@ fxp_detach(device_t dev)
* Close down routes etc.
*/
ether_ifdetach(sc->ifp);
if_free(sc->ifp);
/*
* Stop DMA and drop transmit queue, but disable interrupts first.