dmaengine: coh901318: Remove unused variable
authorVinod Koul <vkoul@kernel.org>
Mon, 26 Nov 2018 08:04:15 +0000 (13:34 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 26 Nov 2018 08:05:52 +0000 (13:35 +0530)
Commit 627469e4445b ("dmaengine: coh901318: Fix a double-lock bug") left
flags variable unused, so remove it to fix the warning.

drivers/dma/coh901318.c: In function 'coh901318_config':
drivers/dma/coh901318.c:1805:16: warning: unused variable 'flags' [-Wunused-variable]
  unsigned long flags;
                ^~~~~

Fixes: 627469e4445b ("dmaengine: coh901318: Fix a double-lock bug")
Reported-By: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/coh901318.c

index fd862a4787382327945585a95a1d01a314dfbba3..b69d66e440529ed2d436b849142dd6caf4dee398 100644 (file)
@@ -1802,7 +1802,6 @@ static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec,
 static int coh901318_config(struct coh901318_chan *cohc,
                            struct coh901318_params *param)
 {
-       unsigned long flags;
        const struct coh901318_params *p;
        int channel = cohc->id;
        void __iomem *virtbase = cohc->base->virtbase;