Skip to contentSkip to conversation

spi: amlogic: Fix some error checking in aml_sfc_dma_buffer_setup()

PATCH In review Dan Carpenter 1 participant 2 messages Sep 15, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: amlogic: Fix some error checking in aml_sfc_dma_buffer_setup()

There was supposed to be a "ret = " assignment here but it was accidentally left off so the error checking doesn't work.

Fixes 4670db6f32e9 ("spi: amlogic: add driver for Amlogic SPI Flash Controller")
---
 drivers/spi/spi-amlogic-spifc-a4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-amlogic-spifc-a4.c +1 -1
index 4ca8e82fdc67..4338d00e56a6 100644
@@ -420,7 +420,7 @@ static int aml_sfc_dma_buffer_setup(struct aml_sfc *sfc, void *databuf,
 		goto out_map_data;
 
 	cmd = CMD_DATA_ADDRH(sfc->daddr);
-	regmap_write(sfc->regmap_base, SFC_CMD, cmd);
+	ret = regmap_write(sfc->regmap_base, SFC_CMD, cmd);
 	if (ret)
 		goto out_map_data;
 
Signature · 1 line
2.51.0
#1 lore raw
Quoted 6 lines · Dan Carpenter

There was supposed to be a "ret = " assignment here but it was accidentally left off so the error checking doesn't work.

Fixes 4670db6f32e9 ("spi: amlogic: add driver for Amlogic SPI Flash Controller")

---

Sorry, I should have checked lore before I sent this. It's already been patched.

regards,
dan carpenter