提交 abda5271 编写于 作者: Y ye xingchen 提交者: Dave Chinner

xfs: Remove the unneeded result variable

Return the value xfs_dir_cilookup_result() directly instead of storing it
in another redundant variable.
Reported-by: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: Nye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: NDarrick J. Wong <djwong@kernel.org>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 8838dafe
...@@ -865,7 +865,6 @@ xfs_dir2_sf_lookup( ...@@ -865,7 +865,6 @@ xfs_dir2_sf_lookup(
struct xfs_inode *dp = args->dp; struct xfs_inode *dp = args->dp;
struct xfs_mount *mp = dp->i_mount; struct xfs_mount *mp = dp->i_mount;
int i; /* entry index */ int i; /* entry index */
int error;
xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */ xfs_dir2_sf_entry_t *sfep; /* shortform directory entry */
xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ xfs_dir2_sf_hdr_t *sfp; /* shortform structure */
enum xfs_dacmp cmp; /* comparison result */ enum xfs_dacmp cmp; /* comparison result */
...@@ -929,8 +928,7 @@ xfs_dir2_sf_lookup( ...@@ -929,8 +928,7 @@ xfs_dir2_sf_lookup(
if (!ci_sfep) if (!ci_sfep)
return -ENOENT; return -ENOENT;
/* otherwise process the CI match as required by the caller */ /* otherwise process the CI match as required by the caller */
error = xfs_dir_cilookup_result(args, ci_sfep->name, ci_sfep->namelen); return xfs_dir_cilookup_result(args, ci_sfep->name, ci_sfep->namelen);
return error;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册