mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
[PATCH] Remove redundant NULL checks before [kv]free - in kernel/
Remove redundant kfree NULL checks from kernel/ Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4ad98457aa
commit
9a66a53f55
1 changed files with 1 additions and 2 deletions
|
@ -658,8 +658,7 @@ static void audit_log_task_context(struct audit_buffer *ab)
|
|||
return;
|
||||
|
||||
error_path:
|
||||
if (ctx)
|
||||
kfree(ctx);
|
||||
kfree(ctx);
|
||||
audit_panic("error in audit_log_task_context");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue