Skip to content

Commit 22fc9db

Browse files
committed
orangefs: no need to check for service_operation returns > 0
service_operation returns > 0 is undefined. Signed-off-by: Mike Marshall <hubcap@omnibond.com>
1 parent 34e6148 commit 22fc9db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/orangefs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
157157
new_op->downcall.resp.lookup.refn.fs_id,
158158
ret);
159159

160-
if (ret >= 0) {
160+
if (ret == 0) {
161161
orangefs_set_timeout(dentry);
162162
inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn);
163163
} else if (ret == -ENOENT) {

0 commit comments

Comments
 (0)