xfs: remove dead code from xlog_recover_inode_pass2
authorMark Tinguely <tinguely@sgi.com>
Thu, 12 Sep 2013 14:01:23 +0000 (09:01 -0500)
committerBen Myers <bpm@sgi.com>
Thu, 12 Sep 2013 14:51:49 +0000 (09:51 -0500)
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
xlog_recover_inode_pass2()
 info: ignoring unreachable code."

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Ben Myers <bpm@sgi.com
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_log_recover.c

index 1c3b0c9c9aace2c63fe9d047fcac8c9b4c951bbb..dabda9521b4becc2ded846307aa062a093a7a3d3 100644 (file)
@@ -2995,9 +2995,6 @@ error:
        if (need_free)
                kmem_free(in_f);
        return XFS_ERROR(error);
-
-       xfs_buf_relse(bp);
-       goto error;
 }
 
 /*