public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ian Molton <spyro@f2s.com>
To: Yan Burman <burman.yan@gmail.com>
Cc: linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: Re: [PATCH 2.6.19] arm26: replace kmalloc+memset with kzalloc
Date: Sat, 02 Dec 2006 14:33:44 +0000	[thread overview]
Message-ID: <45718EC8.9020407@f2s.com> (raw)
In-Reply-To: <1165058589.4523.23.camel@localhost>

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;
> 
> 
> 
> 
> 
> 


      reply	other threads:[~2006-12-02 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45718EC8.9020407@f2s.com \
    --to=spyro@f2s.com \
    --cc=burman.yan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox