Tag: 305697facd1b6d1ce41eaffb1fbe2bf5950334eb

dmaengine: ioatdma: 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/ioat/init.c | 5 ++— 1 …

Lire la suite