From dd6a6d2bf86c7394c27b9de0a4f2bfd72d0f03b5 Mon Sep 17 00:00:00 2001 From: Mariusz Kozlowski Date: Tue, 31 Jul 2007 20:48:41 +0200 Subject: [PATCH] --- yaml --- r: 63497 b: refs/heads/master c: 185bcd17a5fb4155fba125332efa498be126aa4e h: refs/heads/master i: 63495: 735e918e42eb9552750c5c2eb56c642da96a3f26 v: v3 --- [refs] | 2 +- trunk/include/asm-mips/thread_info.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 13507db0cbb9..242999d10afb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 00be0f305fa69adb9f9d7b9447283b862b853e9e +refs/heads/master: 185bcd17a5fb4155fba125332efa498be126aa4e diff --git a/trunk/include/asm-mips/thread_info.h b/trunk/include/asm-mips/thread_info.h index 9676e7d9f52d..9a51dfa5f108 100644 --- a/trunk/include/asm-mips/thread_info.h +++ b/trunk/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