summaryrefslogtreecommitdiffstats
path: root/fs/orangefs
diff options
context:
space:
mode:
authorMike Marshall <hubcap@omnibond.com>2018-10-18 14:05:46 -0400
committerMike Marshall <hubcap@omnibond.com>2018-10-18 14:05:46 -0400
commit22fc9db296fcf7ac30151c52765a7fba10870ab7 (patch)
tree28229a151e6177a996424a9cf6b66c051ea47bfb /fs/orangefs
parent34e6148a2c75abdde44071d1605d009d0ad92e5e (diff)
downloadlinux-22fc9db296fcf7ac30151c52765a7fba10870ab7.tar.gz
linux-22fc9db296fcf7ac30151c52765a7fba10870ab7.tar.bz2
linux-22fc9db296fcf7ac30151c52765a7fba10870ab7.zip
orangefs: no need to check for service_operation returns > 0
service_operation returns > 0 is undefined. Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r--fs/orangefs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index f5cd7075e78e..c8676c996249 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -157,7 +157,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
new_op->downcall.resp.lookup.refn.fs_id,
ret);
- if (ret >= 0) {
+ if (ret == 0) {
orangefs_set_timeout(dentry);
inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn);
} else if (ret == -ENOENT) {