[Top] [All Lists]

[PATCH] xfs: Remove redundant error variable from xfs_growfs_data_privat

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs: Remove redundant error variable from xfs_growfs_data_private()
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Tue, 14 May 2013 22:50:21 +0800
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
From: Jie Liu <jeff.liu@xxxxxxxxxx>

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@xxxxxxxxxx>
 fs/xfs/xfs_fsops.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c
index 2866b8c..7a99854 100644
--- a/fs/xfs/xfs_fsops.c
+++ b/fs/xfs/xfs_fsops.c
@@ -174,7 +174,7 @@ xfs_growfs_data_private(
        if (!bp)
                return EIO;
        if (bp->b_error) {
-               int     error = bp->b_error;
+               error = bp->b_error;
                return error;

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] xfs: Remove redundant error variable from xfs_growfs_data_private(), Jeff Liu <=