From: Jeff Garzik Date: Tue, 17 Jul 2007 01:25:01 +0000 (-0400) Subject: kernel/auditfilter: kill bogus uninit'd-var compiler warning X-Git-Tag: v2.6.23-rc1~515^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f686d3d14621b90f3793b705bdf9fa624fd29ca;p=pandora-kernel.git kernel/auditfilter: kill bogus uninit'd-var compiler warning Kill this warning... kernel/auditfilter.c: In function ‘audit_receive_filter’: kernel/auditfilter.c:1213: warning: ‘ndw’ may be used uninitialized in this function kernel/auditfilter.c:1213: warning: ‘ndp’ may be used uninitialized in this function ...with a simplification of the code. audit_put_nd() can accept NULL arguments, just like kfree(). It is cleaner to init two existing vars to NULL, remove the redundant test variable 'putnd_needed' branches, and call audit_put_nd() directly. As a desired side effect, the warning goes away. Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed