nuttx: littlefs_close should return value bugfix

N/A

Change-Id: I5fea016fe01ac0e87ddeabdae67d36ab4125ea55
This commit is contained in:
hujie1
2021-06-16 01:05:39 -07:00
committed by xiaoxiang
parent 37c2bc18db
commit 3da44d798a
+2 -2
View File
@@ -335,7 +335,7 @@ static int littlefs_close(FAR struct file *filep)
if (--priv->refs <= 0)
{
lfs_file_close(&fs->lfs, &priv->file);
ret = lfs_file_close(&fs->lfs, &priv->file);
}
littlefs_semgive(fs);
@@ -344,7 +344,7 @@ static int littlefs_close(FAR struct file *filep)
kmm_free(priv);
}
return OK;
return ret;
}
/****************************************************************************