diff options
author | Tudor Ambarus <tudor.ambarus@linaro.org> | 2024-02-07 13:04:24 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-02-08 17:33:34 +0100 |
commit | e9c49effde70fb4b10d0ad9c94b69fe6314fc608 (patch) | |
tree | c3f940a7bd672d91b4e2df8f25332835f978ee11 /drivers/spi/spi-s3c64xx.c | |
parent | spi: s3c64xx: move common code outside if else (diff) | |
download | linux-e9c49effde70fb4b10d0ad9c94b69fe6314fc608.tar.xz linux-e9c49effde70fb4b10d0ad9c94b69fe6314fc608.zip |
spi: s3c64xx: check return code of dmaengine_slave_config()
Check the return code of dmaengine_slave_config().
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240207120431.2766269-11-tudor.ambarus@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 8c76894d0eb1..5da82013e17b 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -303,7 +303,9 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma, config.dst_maxburst = 1; } config.direction = dma->direction; - dmaengine_slave_config(dma->ch, &config); + ret = dmaengine_slave_config(dma->ch, &config); + if (ret) + return ret; desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents, dma->direction, DMA_PREP_INTERRUPT); |