projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00be0f3
)
[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Tue, 31 Jul 2007 18:48:41 +0000
(20:48 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 31 Jul 2007 20:35:36 +0000
(21:35 +0100)
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/thread_info.h
patch
|
blob
|
history
diff --git
a/include/asm-mips/thread_info.h
b/include/asm-mips/thread_info.h
index 9676e7d9f52d7e8b986ab45d0af441f16d6721f8..9a51dfa5f10838dc487f8046499d049fa71a4b09 100644
(file)
--- a/
include/asm-mips/thread_info.h
+++ b/
include/asm-mips/thread_info.h
@@
-87,9
+87,8
@@
register struct thread_info *__current_thread_info __asm__("$28");
({ \
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