Re: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings

2018-02-12 Thread Julia Lawall
On Tue, 13 Feb 2018, Vinod Koul wrote: > On Fri, Feb 09, 2018 at 03:55:58PM +0100, Julia Lawall wrote: > > > > > > - ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), > > > > - pc->sz_ring, &ring->tphys, > > > > - GFP

Re: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings

2018-02-12 Thread Vinod Koul
On Fri, Feb 09, 2018 at 03:55:58PM +0100, Julia Lawall wrote: > > > > - ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), > > > -pc->sz_ring, &ring->tphys, > > > -GFP_ATOMIC | __GFP_ZERO); > > > + ring->txd = dma_zalloc_coherent(hsdma2

Re: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings

2018-02-09 Thread Julia Lawall
On Fri, 9 Feb 2018, Vinod Koul wrote: > On Fri, Feb 09, 2018 at 01:58:51AM +0800, sean.w...@mediatek.com wrote: > > From: Fengguang Wu > > > > Use zeroing allocator rather than allocator followed by memset with 0 > > > > Generated by: scripts/coccinelle/api/alloc/zalloc-simple.cocci > > > > Fi

Re: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings

2018-02-09 Thread Vinod Koul
On Fri, Feb 09, 2018 at 01:58:51AM +0800, sean.w...@mediatek.com wrote: > From: Fengguang Wu > > Use zeroing allocator rather than allocator followed by memset with 0 > > Generated by: scripts/coccinelle/api/alloc/zalloc-simple.cocci > > Fixes: c8e4b2e4ca21 ("dmaengine: mediatek: Add MediaTek

[PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings

2018-02-08 Thread sean.wang
From: Fengguang Wu Use zeroing allocator rather than allocator followed by memset with 0 Generated by: scripts/coccinelle/api/alloc/zalloc-simple.cocci Fixes: c8e4b2e4ca21 ("dmaengine: mediatek: Add MediaTek High-Speed DMA controller for MT7622 and MT7623 SoC") Cc: Sean Wang Signed-off-by: F