From: Mariusz Kozlowski Signed-off-by: Mariusz Kozlowski Acked-By: David Howells Signed-off-by: Andrew Morton --- include/asm-frv/thread_info.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN include/asm-frv/thread_info.h~include-asm-frv-thread_infoh-kmalloc-memset-conversion-to-kzalloc include/asm-frv/thread_info.h --- a/include/asm-frv/thread_info.h~include-asm-frv-thread_infoh-kmalloc-memset-conversion-to-kzalloc +++ a/include/asm-frv/thread_info.h @@ -88,9 +88,8 @@ register struct thread_info *__current_t ({ \ 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 _