mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
nuttx: littlefs_close should return value bugfix
N/A Change-Id: I5fea016fe01ac0e87ddeabdae67d36ab4125ea55
This commit is contained in:
parent
37c2bc18db
commit
3da44d798a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue