dmaengine: zynqmp_dma: Fix warning variable 'val' set but not used
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Thu, 7 Dec 2017 05:24:26 +0000 (10:54 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 18 Dec 2017 04:07:06 +0000 (09:37 +0530)
This patch fixes the below warning

drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_handle_ovfl_int':
drivers/dma/xilinx/zynqmp_dma.c:522:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/zynqmp_dma.c

index 4376e4ad34e86d3e67c855e00747a2413456bc96..b9b5c0ac6722291944eb4e5721cd44e78e077269 100644 (file)
@@ -524,12 +524,10 @@ static void zynqmp_dma_start(struct zynqmp_dma_chan *chan)
  */
 static void zynqmp_dma_handle_ovfl_int(struct zynqmp_dma_chan *chan, u32 status)
 {
-       u32 val;
-
        if (status & ZYNQMP_DMA_IRQ_DST_ACCT_ERR)
-               val = readl(chan->regs + ZYNQMP_DMA_IRQ_DST_ACCT);
+               readl(chan->regs + ZYNQMP_DMA_IRQ_DST_ACCT);
        if (status & ZYNQMP_DMA_IRQ_SRC_ACCT_ERR)
-               val = readl(chan->regs + ZYNQMP_DMA_IRQ_SRC_ACCT);
+               readl(chan->regs + ZYNQMP_DMA_IRQ_SRC_ACCT);
 }
 
 static void zynqmp_dma_config(struct zynqmp_dma_chan *chan)