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:
parent
d2308ab790
commit
080645b93b
@ -810,9 +810,8 @@ fxp_attach(device_t dev)
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
splx(s);
|
splx(s);
|
||||||
if (error) {
|
if (error)
|
||||||
fxp_release(sc);
|
fxp_release(sc);
|
||||||
}
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -904,7 +903,6 @@ fxp_detach(device_t dev)
|
|||||||
* Close down routes etc.
|
* Close down routes etc.
|
||||||
*/
|
*/
|
||||||
ether_ifdetach(sc->ifp);
|
ether_ifdetach(sc->ifp);
|
||||||
if_free(sc->ifp);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Stop DMA and drop transmit queue, but disable interrupts first.
|
* Stop DMA and drop transmit queue, but disable interrupts first.
|
||||||
|
Loading…
Reference in New Issue
Block a user