Message ID | 20220510115141.212779-2-abbotti@mev.co.uk (mailing list archive) |
---|---|
State | Accepted |
Commit | 76159e2f9a0fa29fd9fccb262687d95282985b49 |
Headers | show |
Series | spi: cadence-quadspi: a couple of minor cleanups | expand |
diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 30307392c75a..9915704eaf06 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1481,6 +1481,7 @@ static int cqspi_request_mmap_dma(struct cqspi_st *cqspi) cqspi->rx_chan = dma_request_chan_by_mask(&mask); if (IS_ERR(cqspi->rx_chan)) { int ret = PTR_ERR(cqspi->rx_chan); + cqspi->rx_chan = NULL; return dev_err_probe(&cqspi->pdev->dev, ret, "No Rx DMA available\n"); }
Fix "WARNING: Missing a blank line after declarations" reported by checkpatch.pl. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> --- drivers/spi/spi-cadence-quadspi.c | 1 + 1 file changed, 1 insertion(+)