[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1511082118220.2583@hadrien>
Date: Sun, 8 Nov 2015 21:19:04 +0000 (GMT)
From: Julia Lawall <julia.lawall@...6.fr>
To: Andy Shevchenko <andy.shevchenko@...il.com>
cc: Julia Lawall <julia.lawall@...6.fr>,
Sinan Kaya <okaya@...eaurora.org>,
Andy Gross <agross@...eaurora.org>, kbuild-all@...org,
dmaengine <dmaengine@...r.kernel.org>, timur@...eaurora.org,
cov@...eaurora.org, jcm@...hat.com, linux-arm-msm@...r.kernel.org,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>,
Vinod Koul <vinod.koul@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
devicetree <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dma: fix returnvar.cocci warnings
On Sun, 8 Nov 2015, Andy Shevchenko wrote:
> On Sun, Nov 8, 2015 at 9:45 AM, Julia Lawall <julia.lawall@...6.fr> wrote:
> > Remove unneeded variable used to store return value.
> >
> > Generated by: scripts/coccinelle/misc/returnvar.cocci
> >
> > CC: Sinan Kaya <okaya@...eaurora.org>
> > Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
>
> Who is the author?
> I suppose Fengguang is the reporter, right?
There is no human author... But normally when I check these I add a
signed off by line to them.
julia
>
> > ---
> >
> > hidma_ll.c | 6 ++----
> > 1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > --- a/drivers/dma/qcom/hidma_ll.c
> > +++ b/drivers/dma/qcom/hidma_ll.c
> > @@ -567,14 +567,13 @@ int hidma_ll_resume(struct hidma_lldev *
> >
> > static int hidma_ll_hw_start(struct hidma_lldev *lldev)
> > {
> > - int rc = 0;
> > unsigned long irqflags;
> >
> > spin_lock_irqsave(&lldev->lock, irqflags);
> > writel(lldev->tre_write_offset, lldev->trca + TRCA_DOORBELL_OFFSET);
> > spin_unlock_irqrestore(&lldev->lock, irqflags);
> >
> > - return rc;
> > + return 0;
> > }
> >
> > bool hidma_ll_isenabled(struct hidma_lldev *lldev)
> > @@ -600,7 +599,6 @@ bool hidma_ll_isenabled(struct hidma_lld
> > int hidma_ll_queue_request(struct hidma_lldev *lldev, u32 tre_ch)
> > {
> > struct hidma_tre *tre;
> > - int rc = 0;
> > unsigned long flags;
> >
> > tre = &lldev->trepool[tre_ch];
> > @@ -618,7 +616,7 @@ int hidma_ll_queue_request(struct hidma_
> > lldev->tre_write_offset = (lldev->tre_write_offset + TRE_SIZE)
> > % lldev->tre_ring_size;
> > spin_unlock_irqrestore(&lldev->lock, flags);
> > - return rc;
> > + return 0;
> > }
> >
> > int hidma_ll_start(struct hidma_lldev *lldev)
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@...r.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
>
>
>
> --
> With Best Regards,
> Andy Shevchenko
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists