Skip to content

Commit f6fb21b

Browse files
Al Viroidryomov
authored andcommitted
ceph: d_obtain_{alias,root}(ERR_PTR(...)) will do the right thing
Clean up the code. Signed-off-by: Al Viro <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 0f4cf64 commit f6fb21b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ceph/export.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ static struct dentry *__snapfh_to_dentry(struct super_block *sb,
286286
doutc(cl, "%llx.%llx parent %llx hash %x err=%d", vino.ino,
287287
vino.snap, sfh->parent_ino, sfh->hash, err);
288288
}
289-
if (IS_ERR(inode))
290-
return ERR_CAST(inode);
291289
/* see comments in ceph_get_parent() */
292290
return unlinked ? d_obtain_root(inode) : d_obtain_alias(inode);
293291
}

0 commit comments

Comments
 (0)