Skip to content

Commit

Permalink
[PATCH] Remove redundant NULL checks before [kv]free - in kernel/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 28, 2006
1 parent 4ad9845 commit 9a66a53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9a66a53

Please sign in to comment.