Home
last modified time | relevance | path

Searched hist:"305697 facd1b6d1ce41eaffb1fbe2bf5950334eb" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/dma/ioat/
H A Dinit.cdiff 305697facd1b6d1ce41eaffb1fbe2bf5950334eb Fri Apr 29 22:09:10 CEST 2016 Julia Lawall <Julia.Lawall@lip6.fr> dmaengine: ioatdma: Use dma_pool_zalloc

Dma_pool_zalloc combines dma_pool_alloc and memset 0. The semantic patch
that makes this transformation is as follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression d,e;
statement S;
@@

d =
- dma_pool_alloc
+ dma_pool_zalloc
(...);
if (!d) S
- memset(d, 0, sizeof(*d));
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>