diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-01-10 14:02:39 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-02-01 14:24:51 -0500 |
commit | ef00be0554f1af9f2b685e0e3bb9e2ec0181937e (patch) | |
tree | 54827faae4e5bcd81fa6b4a17c80ed9990b69cf2 /kernel | |
parent | b593d384efcff7bdf6beb1bc1bc69927977aee26 (diff) |
[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')
-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, | |||
1032 | { | 1032 | { |
1033 | struct audit_buffer *ab = NULL; | 1033 | struct audit_buffer *ab = NULL; |
1034 | struct timespec t; | 1034 | struct timespec t; |
1035 | unsigned int serial; | 1035 | unsigned int uninitialized_var(serial); |
1036 | int reserve; | 1036 | int reserve; |
1037 | unsigned long timeout_start = jiffies; | 1037 | unsigned long timeout_start = jiffies; |
1038 | 1038 | ||