summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_fsops.c
diff options
context:
space:
mode:
authorJie Liu <jeff.liu@oracle.com>2013-05-14 18:50:21 +0400
committerBen Myers <bpm@sgi.com>2013-06-18 02:43:04 +0400
commit897366f0e4bdc320ade81c3c4035977c99de9aad (patch)
tree6a81982eb9dfe726c09fb13b9ab7c499e20b4546 /fs/xfs/xfs_fsops.c
parentb2410e92b70507e054deb6cdb605ee1d61fc7c95 (diff)
downloadlinux-897366f0e4bdc320ade81c3c4035977c99de9aad.tar.xz
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: Jie Liu <jeff.liu@oracle.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r--fs/xfs/xfs_fsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c
index 3c3644ea825b..614eb0cc3608 100644
--- a/fs/xfs/xfs_fsops.c
+++ b/fs/xfs/xfs_fsops.c
@@ -176,7 +176,7 @@ xfs_growfs_data_private(
if (!bp)
return EIO;
if (bp->b_error) {
- int error = bp->b_error;
+ error = bp->b_error;
xfs_buf_relse(bp);
return error;
}