Skip to content
Commit eccf2144 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Dan Williams
Browse files

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: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 76b0c788
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment