mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
mtdconfig/nvs: return 0 when delete a non-exist kv
Deleting a non-existent key-value pair is deemed a successful deletion. Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
parent
4b7b56a096
commit
73de239ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -1923,7 +1923,7 @@ static ssize_t nvs_write(FAR struct nvs_fs *fs,
|
|||
|
||||
if (pdata->len == 0)
|
||||
{
|
||||
return -ENOENT;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue