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
8c31c2a9db
commit
1b5a39d368
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147269
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user