From 998ee8763530d913bce35edc70932e844386bcde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Sat, 7 Jun 2025 23:26:03 +0200 Subject: [PATCH] drivers: flash: use negative errno in Renesas RA HP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixed an incorrect "return EINVAL" where it should be -EINVAL. Signed-off-by: Benjamin Cabé --- drivers/flash/soc_flash_renesas_ra_hp_ex_op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/flash/soc_flash_renesas_ra_hp_ex_op.c b/drivers/flash/soc_flash_renesas_ra_hp_ex_op.c index 1cba238fe14..1ab1cc9afdb 100644 --- a/drivers/flash/soc_flash_renesas_ra_hp_ex_op.c +++ b/drivers/flash/soc_flash_renesas_ra_hp_ex_op.c @@ -313,7 +313,7 @@ int flash_ra_ex_op_write_protect(const struct device *dev, const uintptr_t in, v (request->protect_enable.BPS[1] & request->protect_disable.BPS[1]) || (request->protect_enable.BPS[2] & request->protect_disable.BPS[2]) || (request->protect_enable.BPS[3] & request->protect_disable.BPS[3])) { - return EINVAL; + return -EINVAL; } rc = flash_ra_block_protect_set(dev, request);