From 3165c0d16a1657aef39219182b6f8807566b1743 Mon Sep 17 00:00:00 2001 From: Mariusz Kozlowski Date: Tue, 16 Oct 2007 01:26:35 -0700 Subject: [PATCH] include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Cc: Hirokazu Takata Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-m32r/thread_info.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/asm-m32r/thread_info.h b/include/asm-m32r/thread_info.h index b7ccc3e686..c039820dba 100644 --- a/include/asm-m32r/thread_info.h +++ b/include/asm-m32r/thread_info.h @@ -100,9 +100,8 @@ static inline struct thread_info *current_thread_info(void) ({ \ struct thread_info *ret; \ \ - ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \ - if (ret) \ - memset(ret, 0, THREAD_SIZE); \ + ret = kzalloc(THREAD_SIZE, GFP_KERNEL); \ + \ ret; \ }) #else -- 2.39.5