summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-06-10 20:42:02 +0000
committerbrooks <brooks@FreeBSD.org>2005-06-10 20:42:02 +0000
commit080645b93b9d88377eecb256c9d0aa5c5c2d4dd7 (patch)
tree1e26854d1e5a5784282bbc8697d8c28cc80c91ac /sys/dev/fxp
parentd2308ab790acd56d0a83bf8a48af1b5d14265a25 (diff)
downloadFreeBSD-src-080645b93b9d88377eecb256c9d0aa5c5c2d4dd7.zip
FreeBSD-src-080645b93b9d88377eecb256c9d0aa5c5c2d4dd7.tar.gz
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.
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 23fff13..5f8d686 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -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.
OpenPOWER on IntegriCloud