This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 860571471d driver/mtdconfig_fs : return -ENOENT when delete
non-existed key
860571471d is described below
commit 860571471da095948fa0c39ce8ac6593a1efbad7
Author: xucheng5 <[email protected]>
AuthorDate: Fri Jun 30 10:18:22 2023 +0800
driver/mtdconfig_fs : return -ENOENT when delete non-existed key
Signed-off-by: xucheng5 <[email protected]>
---
drivers/mtd/mtd_config_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/mtd_config_fs.c b/drivers/mtd/mtd_config_fs.c
index ec82e71295..0267d2a149 100644
--- a/drivers/mtd/mtd_config_fs.c
+++ b/drivers/mtd/mtd_config_fs.c
@@ -1594,7 +1594,7 @@ static ssize_t nvs_write(FAR struct nvs_fs *fs,
if (pdata->len == 0)
{
- return 0;
+ return -ENOENT;
}
}