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.
This commit is contained in:
Alexander Motin 2008-03-16 23:12:17 +00:00
parent 9371f06305
commit e81de8afb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177286

View File

@ -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);