diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-07-17 05:25:01 +0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-18 00:17:59 +0400 |
commit | 6f686d3d14621b90f3793b705bdf9fa624fd29ca (patch) | |
tree | 6addd4e43f433543b33ef0c5e8fdb9f0855f5dce /drivers/net/natsemi.c | |
parent | 49c13b51a15f1ba9f6d47e26e4a3886c4f3931e2 (diff) | |
download | linux-6f686d3d14621b90f3793b705bdf9fa624fd29ca.tar.xz |
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 <jeff@garzik.org>
Diffstat (limited to 'drivers/net/natsemi.c')
0 files changed, 0 insertions, 0 deletions