From: Yan Burman Date: Thu, 7 Dec 2006 04:40:33 +0000 (-0800) Subject: [PATCH] arm26: replace kmalloc+memset with kzalloc X-Git-Tag: v2.6.20-rc1~145^2^2~46 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a0172a6dd906cf813cd56aeb133a85abf9a36c8e;p=linux-2.6-omap-h63xx.git [PATCH] arm26: replace kmalloc+memset with kzalloc Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman CC: Ian Molton Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c index 047d0a408b9..43dd41be71f 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;