Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a66a53f authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds
Browse files

[PATCH] Remove redundant NULL checks before [kv]free - in kernel/



Remove redundant kfree NULL checks from kernel/

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4ad98457
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -658,7 +658,6 @@ static void audit_log_task_context(struct audit_buffer *ab)
	return;

error_path:
	if (ctx)
	kfree(ctx);
	audit_panic("error in audit_log_task_context");
	return;