diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-12-07 04:40:33 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 16:39:45 (GMT) |
commit | a0172a6dd906cf813cd56aeb133a85abf9a36c8e (patch) | |
tree | e018d9943ed6551521b5b94daa7c2e54b699b58f /arch/arm26/kernel/ecard.c | |
parent | b593e48d2bf09c40c0f5165f2f2a10cc3983ea51 (diff) | |
download | linux-fsl-qoriq-a0172a6dd906cf813cd56aeb133a85abf9a36c8e.tar.xz |
[PATCH] arm26: replace kmalloc+memset with kzalloc
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>
Diffstat (limited to 'arch/arm26/kernel/ecard.c')
-rw-r--r-- | arch/arm26/kernel/ecard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c index 047d0a4..43dd41b 100644 --- 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 = kmalloc(sizeof(ecard_t), GFP_KERNEL); + ec = kzalloc(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; |