dmaengine: xilinx_dma: Fix warning variable prev set but not used
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Wed, 3 Jan 2018 06:42:10 +0000 (12:12 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Jan 2018 10:54:50 +0000 (16:24 +0530)
commit4b597c634a2a8fbc8ecbdaf7c2b4c8bb68cfba20
tree618940f991bcc54ba98fbf67033b821a082bbeae
parent48c62fb051af3850e631b573e5393a2b0808ef10
dmaengine: xilinx_dma: Fix warning variable prev set but not used

This patch fixes the below sparse warning in the driver
drivers/dma/xilinx/xilinx_dma.c: In function ‘xilinx_vdma_dma_prep_interleaved’:
drivers/dma/xilinx/xilinx_dma.c:1614:43: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
  struct xilinx_vdma_tx_segment *segment, *prev = NULL;

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