dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Mariusz Kozlowski 2007-10-16 01:26:29 -07:00 committed by Linus Torvalds
parent ef0fce8556
commit 33bbf9597f
1 changed files with 2 additions and 3 deletions

View File

@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15");
({ \
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