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
@ -1856,6 +1856,10 @@ static int unionfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
|
|||||||
if (ops->rewinddir != NULL)
|
if (ops->rewinddir != NULL)
|
||||||
{
|
{
|
||||||
ret = ops->rewinddir(um->um_node, fu->fu_lower[1]);
|
ret = ops->rewinddir(um->um_node, fu->fu_lower[1]);
|
||||||
|
if (ret < 0)
|
||||||
|
{
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Then try the read operation again */
|
/* Then try the read operation again */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user