Tag: 1c85a8440f0cd19e7c1235c8abfc3e07b2226691

dmaengine: mmp_pdma: Use dma_pool_zalloc

Author: Julia Lawall <Julia.Lawall@lip6.fr> Dma_pool_zalloc combines dma_pool_alloc and memset 0. The semantic patch that makes this transformation is as follows: (http://coccinelle.lip6.fr/) // @@ expression d,e; statement S; @@ d = – dma_pool_alloc + dma_pool_zalloc (…); if (!d) S – memset(d, 0, sizeof(*d)); // Signed-off-by: Julia Lawall Signed-off-by: Vinod Koul — drivers/dma/mmp_pdma.c | 3 +– 1 …

Continue reading