lkml.org 
[lkml]   [2018]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings
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(hsdma2dev(hsdma), pc->sz_ring,
> > > + &ring->tphys, GFP_ATOMIC);
> > > if (!ring->txd)
> > > return -ENOMEM;
> > >
> > > - memset(ring->txd, 0, pc->sz_ring);
> >
> > This should be folded back..
>
> Sorry, I'm not sure what you mean by "folded back".

Since the original patch is also up for review in this series, it doesn't
help much to add a change and fix on top in a series. The fix should be
folded back into the original commit. IIRC Fengguang's bot also recommends
so..

--
~Vinod

\
 
 \ /
  Last update: 2018-02-13 07:43    [W:0.038 / U:14.112 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site