提交 897366f0 编写于 作者: J Jie Liu 提交者: Ben Myers

xfs: Remove redundant error variable from xfs_growfs_data_private()

Commit eab4e633 "xfs: uncached buffer reads need to return an error".

Remove redundant error variable, using the function level error variable
to store bp->b_error instead.
Signed-off-by: NJie Liu <jeff.liu@oracle.com>
Reviewed-by: NBen Myers <bpm@sgi.com>
Signed-off-by: NBen Myers <bpm@sgi.com>
上级 b2410e92
...@@ -176,7 +176,7 @@ xfs_growfs_data_private( ...@@ -176,7 +176,7 @@ xfs_growfs_data_private(
if (!bp) if (!bp)
return EIO; return EIO;
if (bp->b_error) { if (bp->b_error) {
int error = bp->b_error; error = bp->b_error;
xfs_buf_relse(bp); xfs_buf_relse(bp);
return error; return error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册