* [PATCH 2.6.19] arm26: replace kmalloc+memset with kzalloc
@ 2006-12-02 11:23 Yan Burman
2006-12-02 14:33 ` Ian Molton
0 siblings, 1 reply; 2+ messages in thread
From: Yan Burman @ 2006-12-02 11:23 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial, spyro
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
diff -rubp linux-2.6.19-rc5_orig/arch/arm26/kernel/ecard.c linux-2.6.19-rc5_kzalloc/arch/arm26/kernel/ecard.c
--- linux-2.6.19-rc5_orig/arch/arm26/kernel/ecard.c 2006-11-09 12:16:22.000000000 +0200
+++ linux-2.6.19-rc5_kzalloc/arch/arm26/kernel/ecard.c 2006-11-11 22:44:04.000000000 +0200
@@ -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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.19] arm26: replace kmalloc+memset with kzalloc
2006-12-02 11:23 [PATCH 2.6.19] arm26: replace kmalloc+memset with kzalloc Yan Burman
@ 2006-12-02 14:33 ` Ian Molton
0 siblings, 0 replies; 2+ messages in thread
From: Ian Molton @ 2006-12-02 14:33 UTC (permalink / raw)
To: Yan Burman; +Cc: linux-kernel, trivial
Yan Burman wrote:
> Replace kmalloc+memset with kzalloc
>
> Acked-by: Ian Molton <spyro@f2s.com>
> Signed-off-by: Yan Burman <burman.yan@gmail.com>
>
> diff -rubp linux-2.6.19-rc5_orig/arch/arm26/kernel/ecard.c linux-2.6.19-rc5_kzalloc/arch/arm26/kernel/ecard.c
> --- linux-2.6.19-rc5_orig/arch/arm26/kernel/ecard.c 2006-11-09 12:16:22.000000000 +0200
> +++ linux-2.6.19-rc5_kzalloc/arch/arm26/kernel/ecard.c 2006-11-11 22:44:04.000000000 +0200
> @@ -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;
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-02 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-02 11:23 [PATCH 2.6.19] arm26: replace kmalloc+memset with kzalloc Yan Burman
2006-12-02 14:33 ` Ian Molton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox