diff options
author | Eric Paris <eparis@redhat.com> | 2012-01-03 20:23:07 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-17 22:16:58 +0100 |
commit | a4ff8dba7d8ce5ceb43fb27df66292251cc73bdc (patch) | |
tree | 2c89a0a7a7dad853a2c2ec70417ef2f3f5a04fd4 /kernel/exit.c | |
parent | audit: drop audit_set_macxattr as it doesn't do anything (diff) | |
download | linux-a4ff8dba7d8ce5ceb43fb27df66292251cc73bdc.tar.xz linux-a4ff8dba7d8ce5ceb43fb27df66292251cc73bdc.zip |
audit: inline audit_free to simplify the look of generic code
make the conditional a static inline instead of doing it in generic code.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 94ed6e20bb53..88dcbbc446f7 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -964,8 +964,7 @@ NORET_TYPE void do_exit(long code) acct_collect(code, group_dead); if (group_dead) tty_audit_exit(); - if (unlikely(tsk->audit_context)) - audit_free(tsk); + audit_free(tsk); tsk->exit_code = code; taskstats_exit(tsk, group_dead); |