From: Mariusz Kozlowski Date: Tue, 16 Oct 2007 08:26:29 +0000 (-0700) Subject: include/asm-frv/thread_info.h: kmalloc + memset conversion to kzalloc X-Git-Tag: v2.6.24-rc1~1096 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79;p=linux-2.6 include/asm-frv/thread_info.h: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Acked-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-frv/thread_info.h b/include/asm-frv/thread_info.h index cc5433e78b..348b8f1df1 100644 --- a/include/asm-frv/thread_info.h +++ b/include/asm-frv/thread_info.h @@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15"); ({ \ 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