All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Drebes <lists-receive@programmierforen.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 3/3 - 2nd try] remove explicit memset to memory allocated with k[zc]alloc
Date: Wed, 19 Dec 2007 20:39:38 +0000	[thread overview]
Message-ID: <200712192139.39132.lists-receive@programmierforen.de> (raw)
In-Reply-To: <001301c84278$b4ab19c0$0b01a8c0@bureau>

Hi!

> 3) remove useless 'sizeof(u8)', which always returns 1, when computing the
> size of the memory to be allocated.
Thanks for including my proposal.

However, it seems as if your mailclient wraps lines and converts tabs into spaces.
The patch doesn't apply. Please have a look at Documentation/email-clients.txt
and check the other patches aswell. A good way to check if everything is right
is to send the patchset to yourself and then try to apply it. If it works, send it
to the mailing list.

> --- linux-2.6.24-rc5/drivers/dma/iop-adma.c 2007-12-16 11:15:52.000000000
> +0100
This line is wrapped...

> +++ linux-2.6.24-rc5/drivers/dma/iop-adma.c.cj 2007-12-19 20:44:58.000000000
> +0100
dito.

> @@ -858,10 +858,10 @@ static int __devinit iop_adma_memcpy_sel
> 
>   dev_dbg(device->common.dev, "%s\n", __FUNCTION__);
> 
> - src = kzalloc(sizeof(u8) * IOP_ADMA_TEST_SIZE, GFP_KERNEL);
> + src = kmalloc(IOP_ADMA_TEST_SIZE, GFP_KERNEL);
The tabs were replaced by a single tab (the same goes for the rest
of the patch).

>   if (!src)
>    return -ENOMEM;
> - dest = kzalloc(sizeof(u8) * IOP_ADMA_TEST_SIZE, GFP_KERNEL);
> + dest = kzalloc(IOP_ADMA_TEST_SIZE, GFP_KERNEL);
>   if (!dest) {
>    kfree(src);
>    return -ENOMEM;
> @@ -871,8 +871,6 @@ static int __devinit iop_adma_memcpy_sel
>   for (i = 0; i < IOP_ADMA_TEST_SIZE; i++)
>    ((u8 *) src)[i] = (u8)i;
> 
> - memset(dest, 0, IOP_ADMA_TEST_SIZE);
> -
>   /* Start copy, using first DMA channel */
>   dma_chan = container_of(device->common.channels.next,
>      struct dma_chan,

CCing the Maintainer would also increase the chance for an merge.

	Regards,
		Andi

      reply	other threads:[~2007-12-19 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 19:52 [PATCH 3/3 - 2nd try] remove explicit memset to memory allocated with k[zc]alloc Christophe Jaillet
2007-12-19 20:39 ` Andi Drebes [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=200712192139.39132.lists-receive@programmierforen.de \
    --to=lists-receive@programmierforen.de \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.