diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-01-10 22:02:39 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-02-01 22:24:51 +0300 |
commit | ef00be0554f1af9f2b685e0e3bb9e2ec0181937e (patch) | |
tree | 54827faae4e5bcd81fa6b4a17c80ed9990b69cf2 /kernel/audit.c | |
parent | b593d384efcff7bdf6beb1bc1bc69927977aee26 (diff) | |
download | linux-ef00be0554f1af9f2b685e0e3bb9e2ec0181937e.tar.xz |
[patch 1/2] kernel/audit.c: warning fix
kernel/audit.c: In function 'audit_log_start':
kernel/audit.c:1133: warning: 'serial' may be used uninitialized in this function
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 1242021c7a6d..b617f69fd4e8 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1032,7 +1032,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, { struct audit_buffer *ab = NULL; struct timespec t; - unsigned int serial; + unsigned int uninitialized_var(serial); int reserve; unsigned long timeout_start = jiffies; |