Skip to content

Commit 998ee87

Browse files
committed
drivers: flash: use negative errno in Renesas RA HP
fixed an incorrect "return EINVAL" where it should be -EINVAL. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent 0cc0034 commit 998ee87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/flash/soc_flash_renesas_ra_hp_ex_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ int flash_ra_ex_op_write_protect(const struct device *dev, const uintptr_t in, v
313313
(request->protect_enable.BPS[1] & request->protect_disable.BPS[1]) ||
314314
(request->protect_enable.BPS[2] & request->protect_disable.BPS[2]) ||
315315
(request->protect_enable.BPS[3] & request->protect_disable.BPS[3])) {
316-
return EINVAL;
316+
return -EINVAL;
317317
}
318318

319319
rc = flash_ra_block_protect_set(dev, request);

0 commit comments

Comments
 (0)