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 Davis 2005-06-10 20:42:02 +00:00
parent 8c31c2a9db
commit 1b5a39d368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147269

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.