dmaengine: xilinx_dma: remove set but not used variable 'tail_segment'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 9 Jan 2019 12:10:37 +0000 (12:10 +0000)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Jan 2019 05:23:29 +0000 (10:53 +0530)
commitc2be36ac2141b97f9a35ab560381317566bee357
treecd0e7697b68e47915eec4d0a1970b4dcf78463a6
parentb8349172b4001ea4e8b38a243275aecd90aa7573
dmaengine: xilinx_dma: remove set but not used variable 'tail_segment'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/dma/xilinx/xilinx_dma.c: In function 'xilinx_vdma_start_transfer':
drivers/dma/xilinx/xilinx_dma.c:1104:33: warning:
 variable 'tail_segment' set but not used [-Wunused-but-set-variable]

It not used since commit b8349172b400 ("dmaengine: xilinx_dma: Drop SG support
for VDMA IP")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c