From: Jeff Garzik <jeff@garzik.org>
To: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Cc: linux <linux-kernel@vger.kernel.org>,
hskinnemoen@atmel.com, gregerts@stud.ntnu.no
Subject: Re: [PATCH 1/1] avr32/pata: avoid unnecessary memset (updated after comments)
Date: Mon, 19 May 2008 17:42:20 -0400 [thread overview]
Message-ID: <4831F43C.4060302@garzik.org> (raw)
In-Reply-To: <20080513191732.5B0B31C0008D@mwinf2713.orange.fr>
Christophe Jaillet wrote:
> From: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
>
> Hi, here is a patch against linux/drivers/ata/pata_at32.c which :
>
> 1) Remove an explicit memset(.., 0, ...) to a variable allocated with
> kzalloc (i.e. 'info').
>
>
> Note: this patch is based on 'linux-2.6.25.tar.bz2'
>
> Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
>
> ---
>
> --- linux/drivers/ata/pata_at32.c 2008-04-17 04:49:44.000000000 +0200
> +++ linux/drivers/ata/pata_at32.c.cj 2008-05-12 23:07:10.000000000 +0200
> @@ -329,8 +329,6 @@ static int __init pata_at32_probe(struct
> if (!info)
> return -ENOMEM;
>
> - memset(info, 0, sizeof(struct at32_ide_info));
> -
> info->irq = irq;
> info->cs = board->cs;
applied
prev parent reply other threads:[~2008-05-19 21:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 19:17 [PATCH 1/1] avr32/pata: avoid unnecessary memset (updated after comments) Christophe Jaillet
2008-05-19 21:42 ` Jeff Garzik [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=4831F43C.4060302@garzik.org \
--to=jeff@garzik.org \
--cc=christophe.jaillet@wanadoo.fr \
--cc=gregerts@stud.ntnu.no \
--cc=hskinnemoen@atmel.com \
--cc=linux-kernel@vger.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;
as well as URLs for NNTP newsgroup(s).