From: Jie Liu Date: Tue, 14 May 2013 14:50:21 +0000 (+0800) Subject: xfs: Remove redundant error variable from xfs_growfs_data_private() X-Git-Tag: v3.11-rc1~18^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=897366f0e4bdc320ade81c3c4035977c99de9aad;p=platform%2Fkernel%2Flinux-stable.git 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 Reviewed-by: Ben Myers Signed-off-by: Ben Myers --- diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 3c3644e..614eb0c 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; }