Skip to content

Commit

Permalink
[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
Browse files Browse the repository at this point in the history
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Mariusz Kozlowski authored and Ralf Baechle committed Jul 31, 2007
1 parent 00be0f3 commit 185bcd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/asm-mips/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 185bcd1

Please sign in to comment.