nuttx: littlefs_close should return value bugfix

N/A

Change-Id: I5fea016fe01ac0e87ddeabdae67d36ab4125ea55
This commit is contained in:
hujie1
2021-07-12 10:05:49 -03:00
committed by Gustavo Henrique Nihei
parent f5eaf82c93
commit 025bddfc6c
+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;
}
/****************************************************************************