diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-10-16 01:26:29 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:03 -0700 |
commit | 33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79 (patch) | |
tree | f19995b3acbfc4e9ffe84b01c1db5b0d3e9a98cc /include | |
parent | ef0fce855677cc64c82331c0f6fd99fa526b95c2 (diff) | |
download | linux-3.10-33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79.tar.gz linux-3.10-33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79.tar.bz2 linux-3.10-33bbf9597f6d341e5fa0c656b6112bd2c0ce9f79.zip |
include/asm-frv/thread_info.h: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-frv/thread_info.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-frv/thread_info.h b/include/asm-frv/thread_info.h index cc5433e78b5..348b8f1df17 100644 --- a/include/asm-frv/thread_info.h +++ b/include/asm-frv/thread_info.h @@ -88,9 +88,8 @@ register struct thread_info *__current_thread_info asm("gr15"); ({ \ 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 |