summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-10-02 17:26:52 +0100
committerMark Brown <broonie@kernel.org>2024-10-02 19:33:04 +0100
commit46854574fd76c711c890423f8ac60df4fb726559 (patch)
tree6f26d1bff3ffba16c20a0d0d09b440d217e93cab /drivers/spi
parente8d2b5bd6094e46913df96da48c866cd06b75686 (diff)
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-ti-qspi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index 0b8f496c6bf4..dfd4a7948c03 100644
--- a/drivers/spi/spi-ti-qspi.c
+++ b/drivers/spi/spi-ti-qspi.c
@@ -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,