From: Mariusz Kozlowski Date: Tue, 31 Jul 2007 18:48:41 +0000 (+0200) Subject: [MIPS] thread_info.h: kmalloc + memset conversion to kzalloc X-Git-Tag: v2.6.23-rc2~30^2~1 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=185bcd17a5fb4155fba125332efa498be126aa4e;p=linux-2.6-omap-h63xx.git [MIPS] thread_info.h: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/thread_info.h b/include/asm-mips/thread_info.h index 9676e7d9f52..9a51dfa5f10 100644 --- a/include/asm-mips/thread_info.h +++ b/include/asm-mips/thread_info.h @@ -87,9 +87,8 @@ register struct thread_info *__current_thread_info __asm__("$28"); ({ \ 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