orangefs: no need to check for service_operation returns > 0
authorMike Marshall <hubcap@omnibond.com>
Thu, 18 Oct 2018 18:05:46 +0000 (14:05 -0400)
committerMike Marshall <hubcap@omnibond.com>
Thu, 18 Oct 2018 18:05:46 +0000 (14:05 -0400)
service_operation returns > 0 is undefined.

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/namei.c

index f5cd707..c8676c9 100644 (file)
@@ -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) {