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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79;p=openwrt%2Fstaging%2Fblogic.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 cc5433e78b52..348b8f1df17e 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