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; } }