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-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a66a53f558efc2619a438278d2919b3c9a7f673;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 bdfb580a067b..dc5e3f01efe7 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; }