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 <colin.i.king@gmail.com> Link: https://patch.msgid.link/20241002162652.957102-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e8d2b5b commit 4685457

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)