nuttx: littlefs_close should return value bugfix
N/A Change-Id: I5fea016fe01ac0e87ddeabdae67d36ab4125ea55
This commit is contained in:
parent
f5eaf82c93
commit
025bddfc6c
@ -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…
x
Reference in New Issue
Block a user