Skip to content

Commit c2be36a

Browse files
YueHaibingvinodkoul
authored andcommitted
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 b834917 ("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>
1 parent b834917 commit c2be36a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/dma/xilinx/xilinx_dma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,6 @@ static void xilinx_vdma_start_transfer(struct xilinx_dma_chan *chan)
11011101
struct xilinx_vdma_config *config = &chan->config;
11021102
struct xilinx_dma_tx_descriptor *desc, *tail_desc;
11031103
u32 reg, j;
1104-
struct xilinx_vdma_tx_segment *tail_segment;
11051104
struct xilinx_vdma_tx_segment *segment, *last = NULL;
11061105
int i = 0;
11071106

@@ -1120,9 +1119,6 @@ static void xilinx_vdma_start_transfer(struct xilinx_dma_chan *chan)
11201119
tail_desc = list_last_entry(&chan->pending_list,
11211120
struct xilinx_dma_tx_descriptor, node);
11221121

1123-
tail_segment = list_last_entry(&tail_desc->segments,
1124-
struct xilinx_vdma_tx_segment, node);
1125-
11261122
/* Configure the hardware using info in the config structure */
11271123
if (chan->has_vflip) {
11281124
reg = dma_read(chan, XILINX_VDMA_REG_ENABLE_VERTICAL_FLIP);

0 commit comments

Comments
 (0)