[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160608033514.GR16910@localhost>
Date: Wed, 8 Jun 2016 09:05:15 +0530
From: Vinod Koul <vinod.koul@...el.com>
To: Amitoj Kaur Chawla <amitoj1606@...il.com>
Cc: dan.j.williams@...el.com, michal.simek@...inx.com,
soren.brinkmann@...inx.com, linux-arm-kernel@...ts.infradead.org,
dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
julia.lawall@...6.fr
Subject: Re: [PATCH] dmaengine: xilinx_vdma: Use dma_pool_zalloc
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_alloc
> + dma_pool_zalloc
> (...);
> if (!d) S
> - memset(d, 0, sizeof(T));
Thanks for your patch, but I have already applied a similar patch fixing
this.
--
~Vinod
Powered by blists - more mailing lists