Skip to content

Commit 4685457

Browse files
ColinIanKingbroonie
authored andcommitted
spi: spi-ti-qspi: remove redundant assignment to variable ret
Variable ret is being assigned a value but it is never read, instead the variable is being reassigned later in the exit path via label no_dma. Remove the redundant assignment. Signed-off-by: Colin Ian King <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e8d2b5b commit 4685457

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/spi/spi-ti-qspi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
863863
dev_err(qspi->dev,
864864
"No Rx DMA available, trying mmap mode\n");
865865
qspi->rx_chan = NULL;
866-
ret = 0;
867866
goto no_dma;
868867
}
869868
qspi->rx_bb_addr = dma_alloc_coherent(qspi->dev,

0 commit comments

Comments
 (0)