]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
iop-adma: fixup some kzalloc/memset confusions
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 20 May 2008 23:33:06 +0000 (16:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 20 May 2008 20:51:20 +0000 (13:51 -0700)
commiteccf2144e1232c33a8235033ffa079b6ebf92faf
tree870dece32d3a26405f335884ffee0276d23f4a65
parent76b0c788e6033c514f2a75171b04c73c68d28e8d
iop-adma: fixup some kzalloc/memset confusions

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.

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/iop-adma.c