From: Jesper Juhl Date: Tue, 27 Jun 2006 09:55:05 +0000 (-0700) Subject: [PATCH] Remove redundant NULL checks before [kv]free - in kernel/ X-Git-Tag: v2.6.18-rc1~483 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=9a66a53f558efc2619a438278d2919b3c9a7f673;p=safe%2Fjmp%2Flinux-2.6 [PATCH] Remove redundant NULL checks before [kv]free - in kernel/ Remove redundant kfree NULL checks from kernel/ Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c index bdfb580..dc5e3f0 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -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; }