mirror of
https://github.com/apache/nuttx.git
synced 2026-08-30 05:40:37 +00:00
fs/unionfs: check return value to avoid unused value
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
4631face24
commit
e4c9a491c8
1 changed files with 4 additions and 0 deletions
|
|
@ -1856,6 +1856,10 @@ static int unionfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
|
|||
if (ops->rewinddir != NULL)
|
||||
{
|
||||
ret = ops->rewinddir(um->um_node, fu->fu_lower[1]);
|
||||
if (ret < 0)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/* Then try the read operation again */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue