From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Tue, 6 Sep 2011 13:00:15 +0100 Subject: [Cluster-devel] [PATCH 3/5] libgfs2: Remove dead code from gfs2_get_leaf In-Reply-To: <1315310417-4833-1-git-send-email-anprice@redhat.com> References: <1315310417-4833-1-git-send-email-anprice@redhat.com> Message-ID: <1315310417-4833-3-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The value of error is always 0 when this if statement is reached. This patch removes it. Signed-off-by: Andrew Price --- gfs2/libgfs2/fs_ops.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c index c778564..d344bc4 100644 --- a/gfs2/libgfs2/fs_ops.c +++ b/gfs2/libgfs2/fs_ops.c @@ -1032,8 +1032,6 @@ int gfs2_get_leaf(struct gfs2_inode *dip, uint64_t leaf_no, int error = 0; *bhp = bread(dip->i_sbd, leaf_no); - if (error) - return error; error = gfs2_check_meta(*bhp, GFS2_METATYPE_LF); if(error) brelse(*bhp); -- 1.7.6