aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-m32r
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-10-16 01:26:35 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 09:43:03 -0700
commit3165c0d16a1657aef39219182b6f8807566b1743 (patch)
tree1e252b4090a1fa10d3379bc1b9403615813a42aa /include/asm-m32r
parentb2b5d37d7ee1592046ef75986c6d37ee9d55a61b (diff)
downloadkernel_samsung_aries-3165c0d16a1657aef39219182b6f8807566b1743.zip
kernel_samsung_aries-3165c0d16a1657aef39219182b6f8807566b1743.tar.gz
kernel_samsung_aries-3165c0d16a1657aef39219182b6f8807566b1743.tar.bz2
include/asm-m32r/thread_info.h: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Cc: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-m32r')
-rw-r--r--include/asm-m32r/thread_info.h5
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