From: Christophe Jaillet Date: Tue, 20 May 2008 23:33:06 +0000 (-0700) Subject: iop-adma: fixup some kzalloc/memset confusions X-Git-Tag: v2.6.26-rc4~95^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eccf2144e1232c33a8235033ffa079b6ebf92faf;p=pandora-kernel.git 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 Signed-off-by: Dan Williams --- Reading git-diff-tree failed