ARM: davinci: edma: use kzalloc()
commit902532dbe8e64c023567eab8e9e709b0db028e0c
authorThomas Meyer <thomas@m3y3r.de>
Sat, 6 Aug 2011 11:26:13 +0000 (6 13:26 +0200)
committerSekhar Nori <nsekhar@ti.com>
Sat, 17 Sep 2011 10:24:09 +0000 (17 15:54 +0530)
treebd1ddd5d643cfd670ebae876f547fe5b74f54e4a
parentf23fe857bbea393b4b94fe2218c98d934bd3d4cf
ARM: davinci: edma: use kzalloc()

 Use kzalloc rather than kmalloc followed by memset with 0

 This considers some simple cases that are common and easy to validate
 Note in particular that there are no ...s in the rule, so all of the
 matched code has to be contiguous

 The semantic patch that makes this output is available
 in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.

 More information about semantic patching is available at
 http://coccinelle.lip6.fr/

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/dma.c