svn commit: r185179 - head/sys/netgraph

Alexander Motin mav at FreeBSD.org
Sat Nov 22 08:03:19 PST 2008


Author: mav
Date: Sat Nov 22 16:03:18 2008
New Revision: 185179
URL: http://svn.freebsd.org/changeset/base/185179

Log:
  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)

Modified:
  head/sys/netgraph/ng_base.c

Modified: head/sys/netgraph/ng_base.c
==============================================================================
--- head/sys/netgraph/ng_base.c	Sat Nov 22 15:38:24 2008	(r185178)
+++ head/sys/netgraph/ng_base.c	Sat Nov 22 16:03:18 2008	(r185179)
@@ -2853,8 +2853,7 @@ ng_generic_msg(node_p here, item_p item,
 	 */
 out:
 	NG_RESPOND_MSG(error, here, item, resp);
-	if (msg)
-		NG_FREE_MSG(msg);
+	NG_FREE_MSG(msg);
 	return (error);
 }
 


More information about the svn-src-all mailing list