Re: [PATCH 1/1] dma:

From: Dan Williams
Date: Tue May 13 2008 - 18:55:40 EST



On Mon, 2008-05-12 at 13:50 -0700, Christophe Jaillet wrote:
> ÃÂÂFrom: Christophe Jaillet <christophe.jaillet@xxxxxxxxxx>
>
> Hi, here is a patch against linux/drivers/dma/iop-adma.c which :
>
> 1) Remove an explicit memset(.., 0, ...) to a variable allocated with
> kzalloc (i.e. 'dest').
>
> 2) Allocate 'src' with kmalloc instead of kzalloc as all elements of
> the
> 'src' buffer are initialized in a 'for(...)' loop just after.
>
> 3) remove useless 'sizeof(u8)', which always returns 1, when computing
> the
> size of the memory to be allocated.
>
>
> Note: this patch is based on 'linux-2.6.25.tar.bz2'
>
> Signed-off-by: Christophe Jaillet <christophe.jaillet@xxxxxxxxxx>

Thanks, applied.

--
Dan

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/