diff options
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/thread_info.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 |