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:
b593e48
)
[PATCH] arm26: replace kmalloc+memset with kzalloc
author
Yan Burman
<burman.yan@gmail.com>
Thu, 7 Dec 2006 04:40:33 +0000
(20:40 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:45 +0000
(08:39 -0800)
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
CC: Ian Molton <spyro@f2s.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/arm26/kernel/ecard.c
patch
|
blob
|
history
diff --git
a/arch/arm26/kernel/ecard.c
b/arch/arm26/kernel/ecard.c
index 047d0a408b9deb25c10a9db2d32c144353ccf193..43dd41be71fb80ac1ac7f0898924c77902b9bd5f 100644
(file)
--- a/
arch/arm26/kernel/ecard.c
+++ b/
arch/arm26/kernel/ecard.c
@@
-620,12
+620,10
@@
ecard_probe(int slot, card_type_t type)
struct ex_ecid cid;
int i, rc = -ENOMEM;
- ec = k
m
alloc(sizeof(ecard_t), GFP_KERNEL);
+ ec = k
z
alloc(sizeof(ecard_t), GFP_KERNEL);
if (!ec)
goto nomem;
- memset(ec, 0, sizeof(ecard_t));
-
ec->slot_no = slot;
ec->type = type;
ec->irq = NO_IRQ;