orangefs: no need to check for service_operation returns > 0

service_operation returns > 0 is undefined.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Mike Marshall 2018-10-18 14:05:46 -04:00
Родитель 34e6148a2c
Коммит 22fc9db296
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -157,7 +157,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
new_op->downcall.resp.lookup.refn.fs_id, new_op->downcall.resp.lookup.refn.fs_id,
ret); ret);
if (ret >= 0) { if (ret == 0) {
orangefs_set_timeout(dentry); orangefs_set_timeout(dentry);
inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn);
} else if (ret == -ENOENT) { } else if (ret == -ENOENT) {