mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
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>
This commit is contained in:
parent
e8d2b5bd60
commit
46854574fd
|
|
@ -863,7 +863,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
|
|||
dev_err(qspi->dev,
|
||||
"No Rx DMA available, trying mmap mode\n");
|
||||
qspi->rx_chan = NULL;
|
||||
ret = 0;
|
||||
goto no_dma;
|
||||
}
|
||||
qspi->rx_bb_addr = dma_alloc_coherent(qspi->dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user