[Top] [All Lists]

[PATCH] xfs: remove dead code from xlog_recover_inode_pass2

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfs: remove dead code from xlog_recover_inode_pass2
From: Mark Tinguely <tinguely@xxxxxxx>
Date: Thu, 12 Sep 2013 09:01:23 -0500
Cc: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
References: <20130912140122.873071199@xxxxxxx>
User-agent: quilt/0.51-1
Additional code in the error handler of xlog_recover_inode_pass2()
results in the following error:

static checker warning: "fs/xfs/xfs_log_recover.c:2999
         info: ignoring unreachable code."

Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Signed-off-by: Mark Tinguely <tinguely@xxxxxxx>
 fs/xfs/xfs_log_recover.c |    3 ---
 1 file changed, 3 deletions(-)

Index: b/fs/xfs/xfs_log_recover.c
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2995,9 +2995,6 @@ error:
        if (need_free)
        return XFS_ERROR(error);
-       xfs_buf_relse(bp);
-       goto error;

<Prev in Thread] Current Thread [Next in Thread>