drivers: flash: use negative errno in Renesas RA HP
fixed an incorrect "return EINVAL" where it should be -EINVAL. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
0cc0034eba
commit
998ee87635
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue