From: Mariusz Kozlowski Signed-off-by: Mariusz Kozlowski Cc: Hirokazu Takata Signed-off-by: Andrew Morton --- include/asm-m32r/thread_info.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN include/asm-m32r/thread_info.h~include-asm-m32r-thread_infoh-kmalloc-memset-conversion-to-kzalloc include/asm-m32r/thread_info.h --- a/include/asm-m32r/thread_info.h~include-asm-m32r-thread_infoh-kmalloc-memset-conversion-to-kzalloc +++ a/include/asm-m32r/thread_info.h @@ -100,9 +100,8 @@ static inline struct thread_info *curren ({ \ 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 _