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: http://pilppa.com/gitweb/?a=commitdiff_plain;h=33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79;p=linux-2.6-omap-h63xx.git 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 cc5433e78b5..348b8f1df17 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