Skip to content

Commit

Permalink
[PATCH] arm26: replace kmalloc+memset with kzalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yan Burman authored and Linus Torvalds committed Dec 7, 2006
1 parent b593e48 commit a0172a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/arm26/kernel/ecard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0172a6

Please sign in to comment.