diff options
author | mav <mav@FreeBSD.org> | 2008-03-16 23:12:17 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-03-16 23:12:17 +0000 |
commit | b09a1d85ff4f0e3bdaf707444c2ef9d52386dcbf (patch) | |
tree | 50be43a45f43bbf2adc2483f3ec736b2b44e6995 /sys/netgraph/ng_base.c | |
parent | d44989c32372730a13992abcafde4804a7c074fa (diff) | |
download | FreeBSD-src-b09a1d85ff4f0e3bdaf707444c2ef9d52386dcbf.zip FreeBSD-src-b09a1d85ff4f0e3bdaf707444c2ef9d52386dcbf.tar.gz |
Remove impossible (hk_peer == NULL) check from ng_address_hook().
Valid hook can't have NULL peer. Even invalid one can't, as it is resets to
deadhook, but not NULL.
Diffstat (limited to 'sys/netgraph/ng_base.c')
-rw-r--r-- | sys/netgraph/ng_base.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index cde7fdb..e893cf8 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -3577,7 +3577,6 @@ ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr) */ if ((hook == NULL) || NG_HOOK_NOT_VALID(hook) - || (NG_HOOK_PEER(hook) == NULL) || NG_HOOK_NOT_VALID(NG_HOOK_PEER(hook)) || NG_NODE_NOT_VALID(NG_PEER_NODE(hook))) { NG_FREE_ITEM(item); |