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: https://git.stricted.de/?a=commitdiff_plain;h=33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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