summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/bmap.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-11-08 14:04:20 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2011-11-08 14:04:20 +0000
commit87654896ca619ff64f94d3881d6bd0ec7b29e25f (patch)
treed5f19dca46c1d6aaa20a3a13acfe739eec0cc203 /fs/gfs2/bmap.c
parentdfe4d34b39b80faff52489f950a18523da7581bf (diff)
downloadop-kernel-dev-87654896ca619ff64f94d3881d6bd0ec7b29e25f.zip
op-kernel-dev-87654896ca619ff64f94d3881d6bd0ec7b29e25f.tar.gz
GFS2: More automated code analysis fixes
A potentially uninitialised variable, some unreachable code, and the main part of this, fixing the error path in the unlink function. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/bmap.c')
-rw-r--r--fs/gfs2/bmap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c
index 41d494d..f6be14f 100644
--- a/fs/gfs2/bmap.c
+++ b/fs/gfs2/bmap.c
@@ -743,9 +743,6 @@ static int do_strip(struct gfs2_inode *ip, struct buffer_head *dibh,
else if (ip->i_depth)
revokes = sdp->sd_inptrs;
- if (error)
- return error;
-
memset(&rlist, 0, sizeof(struct gfs2_rgrp_list));
bstart = 0;
blen = 0;
OpenPOWER on IntegriCloud