From: Mike Marshall Date: Thu, 18 Oct 2018 18:05:46 +0000 (-0400) Subject: orangefs: no need to check for service_operation returns > 0 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=22fc9db296fcf7ac30151c52765a7fba10870ab7;p=linux.git orangefs: no need to check for service_operation returns > 0 service_operation returns > 0 is undefined. Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c index f5cd7075e78e1..c8676c9962498 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) {