driver/mtdconfig_fs : return -ENOENT when delete non-existed key

Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
xucheng5 2023-06-30 10:18:22 +08:00 committed by Xiang Xiao
parent f1287a9996
commit 860571471d

View File

@ -1594,7 +1594,7 @@ static ssize_t nvs_write(FAR struct nvs_fs *fs,
if (pdata->len == 0)
{
return 0;
return -ENOENT;
}
}