From 9bd352d6fd6ed05543faac0ffcf08a19e707b7fe Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sat, 22 Nov 2008 16:03:18 +0000 Subject: [PATCH] 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) --- sys/netgraph/ng_base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 6a0ce8853786..263469aa4753 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -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); }