Re: [PATCH] dmaengine: xilinx_vdma: Use dma_pool_zalloc

2016-06-07 Thread Vinod Koul
On Wed, Jun 08, 2016 at 12:48:38AM +0530, Amitoj Kaur Chawla wrote: > Dma_pool_zalloc combines dma_pool_alloc and memset 0. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > type T; > T *d; > expression e; > statement S; > @@ > > d = > -dma_pool_

[PATCH] dmaengine: xilinx_vdma: Use dma_pool_zalloc

2016-06-07 Thread Amitoj Kaur Chawla
Dma_pool_zalloc combines dma_pool_alloc and memset 0. The Coccinelle semantic patch used to make this change is as follows: @@ type T; T *d; expression e; statement S; @@ d = -dma_pool_alloc +dma_pool_zalloc (...); if (!d) S - memset(d, 0