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:
parent
ef0fce8556
commit
33bbf9597f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue