include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc

Signed-off-by: Mariusz Kozlowski <[email protected]>
Cc: Hirokazu Takata <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Mariusz Kozlowski 2007-10-16 01:26:35 -07:00 • committed by Linus Torvalds
commit 3165c0d16a

View file

@ -100,9 +100,8 @@ static inline struct thread_info *current_thread_info(void)
({ \
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