diff options
author | glebius <glebius@FreeBSD.org> | 2004-12-30 12:22:51 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-12-30 12:22:51 +0000 |
commit | 98b3df98e59a0f5b265ab1fc34fbfea44d67a57a (patch) | |
tree | 0dffd26e52fb088b407323d9394aafd028a20af5 | |
parent | 137fcb142b7d8f2096a8cdf3e10bcf5b7ca72ccb (diff) | |
download | FreeBSD-src-98b3df98e59a0f5b265ab1fc34fbfea44d67a57a.zip FreeBSD-src-98b3df98e59a0f5b265ab1fc34fbfea44d67a57a.tar.gz |
Remove a check that never returns true, because in this case we have panic
before the check.
-rw-r--r-- | sys/netgraph/ng_ether.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 1682fc1..b73b7b1 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -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 |