Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3165c0d16a1657aef39219182b6f8807566b1743 Commit: 3165c0d16a1657aef39219182b6f8807566b1743 Parent: b2b5d37d7ee1592046ef75986c6d37ee9d55a61b Author: Mariusz Kozlowski <[EMAIL PROTECTED]> AuthorDate: Tue Oct 16 01:26:35 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue Oct 16 09:43:03 2007 -0700
include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]> Cc: Hirokazu Takata <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- include/asm-m32r/thread_info.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/asm-m32r/thread_info.h b/include/asm-m32r/thread_info.h index b7ccc3e..c039820 100644 --- a/include/asm-m32r/thread_info.h +++ b/include/asm-m32r/thread_info.h @@ -100,9 +100,8 @@ static inline struct thread_info *current_thread_info(void) ({ \ 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 - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html