From: Mariusz Kozlowski Date: Tue, 16 Oct 2007 08:26:35 +0000 (-0700) Subject: include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc X-Git-Tag: v2.6.24-rc1~1090 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3165c0d16a1657aef39219182b6f8807566b1743;p=~shefty%2Frdma-dev.git 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 --- diff --git a/include/asm-m32r/thread_info.h b/include/asm-m32r/thread_info.h index b7ccc3e6860..c039820dba7 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