Remove unneeded NULL check. At first msg can't be null here and and at second

NG_FREE_MSG() also checks it.

Found with:	Coverity Prevent(tm)
This commit is contained in:
Alexander Motin 2008-11-22 16:03:18 +00:00
parent f4088192d4
commit 9bd352d6fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185179

View File

@ -2853,8 +2853,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook)
*/
out:
NG_RESPOND_MSG(error, here, item, resp);
if (msg)
NG_FREE_MSG(msg);
NG_FREE_MSG(msg);
return (error);
}