[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 31 Jul 2007 18:48:41 +0000 (20:48 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 31 Jul 2007 20:35:36 +0000 (21:35 +0100)
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/thread_info.h

index 9676e7d9f52d7e8b986ab45d0af441f16d6721f8..9a51dfa5f10838dc487f8046499d049fa71a4b09 100644 (file)
@@ -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