Remove a check that never returns true, because in this case we have panic

before the check.
This commit is contained in:
Gleb Smirnoff 2004-12-30 12:22:51 +00:00
parent 895e960f4c
commit 3cbbee76f8

View File

@ -299,8 +299,6 @@ ng_ether_detach(struct ifnet *ifp)
const node_p node = IFP2NG(ifp);
const priv_p priv = NG_NODE_PRIVATE(node);
if (node == NULL) /* no node (why not?), ignore */
return;
NG_NODE_REALLY_DIE(node); /* Force real removal of node */
/*
* We can't assume the ifnet is still around when we run shutdown