From e81de8afb04dd252ac5c3868dbffc8d56272c0be Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 16 Mar 2008 23:12:17 +0000 Subject: [PATCH] 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. --- sys/netgraph/ng_base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index cde7fdbdb7c..e893cf850aa 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);