mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
driver/mtdconfig_fs : return -ENOENT when delete non-existed key
Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
@@ -1594,7 +1594,7 @@ static ssize_t nvs_write(FAR struct nvs_fs *fs,
|
||||
|
||||
if (pdata->len == 0)
|
||||
{
|
||||
return 0;
|
||||
return -ENOENT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user