driver/mtdconfig_fs : return -ENOENT when delete non-existed key
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
parent
f1287a9996
commit
860571471d
@ -1594,7 +1594,7 @@ static ssize_t nvs_write(FAR struct nvs_fs *fs,
|
||||
|
||||
if (pdata->len == 0)
|
||||
{
|
||||
return 0;
|
||||
return -ENOENT;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user