summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2007-09-21 08:25:55 +0000
committermav <mav@FreeBSD.org>2007-09-21 08:25:55 +0000
commit1f0cbf5a2393fcdc1b29d0dcdbda0fe10bfbb80f (patch)
tree5433e9228e1119ffce07e36d49f00dc9bfe0fd43 /sys/netgraph
parent01f9f6963585c85073d89375ac95b6c91e063d1a (diff)
downloadFreeBSD-src-1f0cbf5a2393fcdc1b29d0dcdbda0fe10bfbb80f.zip
FreeBSD-src-1f0cbf5a2393fcdc1b29d0dcdbda0fe10bfbb80f.tar.gz
Dead code removal.
Approved by: re (kensmith), glebius (mentor)
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_pppoe.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c
index 026f87d7..107bf57 100644
--- a/sys/netgraph/ng_pppoe.c
+++ b/sys/netgraph/ng_pppoe.c
@@ -1661,9 +1661,7 @@ ng_pppoe_disconnect(hook_p hook)
node_p node = NG_HOOK_NODE(hook);
priv_p privp = NG_NODE_PRIVATE(node);
sessp sp;
- int hooks;
- hooks = NG_NODE_NUMHOOKS(node); /* This one already not counted. */
if (hook == privp->debug_hook) {
privp->debug_hook = NULL;
} else if (hook == privp->ethernet_hook) {
@@ -1739,15 +1737,6 @@ ng_pppoe_disconnect(hook_p hook)
}
free(sp, M_NETGRAPH_PPPOE);
NG_HOOK_SET_PRIVATE(hook, NULL);
-
- /*
- * Work out how many session hooks there are.
- * Node goes away on last session hook removal.
- */
- if (privp->ethernet_hook)
- hooks -= 1;
- if (privp->debug_hook)
- hooks -= 1;
}
if ((NG_NODE_NUMHOOKS(node) == 0) &&
(NG_NODE_IS_VALID(node)))
OpenPOWER on IntegriCloud