fs/unionfs: check return value to avoid unused value

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-04-01 12:12:34 +08:00 committed by Xiang Xiao
parent 4631face24
commit e4c9a491c8

View File

@ -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 */