arm26: replace kmalloc+memset with kzalloc
PATCH 1/1 arm26: replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by Yan Burman <[email protected]>
arch/arm26/kernel/ecard.c +1 -3
@@ -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 ;
Quoted 28 lines · Yan Burman
Replace kmalloc+memset with kzalloc
Acked-by Ian Molton <[email protected]>Signed-off-by Yan Burman <[email protected]>diff -rubp
linux-2.6.19-rc5_orig/arch/arm26/kernel/ecard.clinux-2.6.19-rc5_kzalloc/arch/arm26/kernel/ecard.carch/arm26/kernel/ecard.c +1
-3@@ -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 ;