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

Remove redundant kfree NULL checks from kernel/

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jesper Juhl 2006-06-27 02:55:05 -07:00 • committed by Linus Torvalds
commit 9a66a53f55

View file

@ -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;
}