Skip to content

Commit 18dda9e

Browse files
ColinIanKingbroonie
authored andcommitted
spi: amlogic: Fix error checking on regmap_write call
Currently a call to regmap_write is not being error checked because the return checke is being performed on the variable ret and this variable is not assigned the return value from the regmap_write call. Fix this by adding in the missing assignment. Fixes: 4670db6 ("spi: amlogic: add driver for Amlogic SPI Flash Controller") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://patch.msgid.link/20250913201612.1338217-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 34c2202 commit 18dda9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi-amlogic-spifc-a4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static int aml_sfc_dma_buffer_setup(struct aml_sfc *sfc, void *databuf,
420420
goto out_map_data;
421421

422422
cmd = CMD_DATA_ADDRH(sfc->daddr);
423-
regmap_write(sfc->regmap_base, SFC_CMD, cmd);
423+
ret = regmap_write(sfc->regmap_base, SFC_CMD, cmd);
424424
if (ret)
425425
goto out_map_data;
426426

0 commit comments

Comments
 (0)