Commit ef00be0554f1af9f2b685e0e3bb9e2ec0181937e

Authored by Andrew Morton
Committed by Al Viro
1 parent b593d384ef

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1032,7 +1032,7 @@
1032 1032 {
1033 1033 struct audit_buffer *ab = NULL;
1034 1034 struct timespec t;
1035   - unsigned int serial;
  1035 + unsigned int uninitialized_var(serial);
1036 1036 int reserve;
1037 1037 unsigned long timeout_start = jiffies;
1038 1038