diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-07-31 20:48:41 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-31 22:35:36 +0200 |
commit | 185bcd17a5fb4155fba125332efa498be126aa4e (patch) | |
tree | e7b74d90551215cb73dbed853d50f05a160cbbf2 /include/asm-mips/thread_info.h | |
parent | [MIPS] Kexec: Fix several 64-bit bugs. (diff) | |
download | linux-185bcd17a5fb4155fba125332efa498be126aa4e.tar.xz linux-185bcd17a5fb4155fba125332efa498be126aa4e.zip |
[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/thread_info.h')
-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 9676e7d9f52d..9a51dfa5f108 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 |