diff options
author | Burman Yan <yan_952@hotmail.com> | 2006-12-07 02:14:19 +0100 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-12-07 02:14:19 +0100 |
commit | 116780fc04d9f6cd3ceeab0251681f1dfda53367 (patch) | |
tree | d28148b520fa9ed8e7ea7d6e067c95cee4a42078 /include | |
parent | d7fb02712818643bab79a6b3cb8270a747d0227b (diff) | |
download | blackbird-op-linux-116780fc04d9f6cd3ceeab0251681f1dfda53367.tar.gz blackbird-op-linux-116780fc04d9f6cd3ceeab0251681f1dfda53367.zip |
[PATCH] i386: replace kmalloc+memset with kzalloc
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/thread_info.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/asm-i386/thread_info.h b/include/asm-i386/thread_info.h index 54d6d7aea938..46d32ad92082 100644 --- a/include/asm-i386/thread_info.h +++ b/include/asm-i386/thread_info.h @@ -95,15 +95,7 @@ static inline struct thread_info *current_thread_info(void) /* thread information allocation */ #ifdef CONFIG_DEBUG_STACK_USAGE -#define alloc_thread_info(tsk) \ - ({ \ - struct thread_info *ret; \ - \ - ret = kmalloc(THREAD_SIZE, GFP_KERNEL); \ - if (ret) \ - memset(ret, 0, THREAD_SIZE); \ - ret; \ - }) +#define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL) #else #define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL) #endif |