diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-08 14:04:20 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-11-08 14:04:20 +0000 |
commit | 87654896ca619ff64f94d3881d6bd0ec7b29e25f (patch) | |
tree | d5f19dca46c1d6aaa20a3a13acfe739eec0cc203 /fs/gfs2/bmap.c | |
parent | dfe4d34b39b80faff52489f950a18523da7581bf (diff) | |
download | blackbird-op-linux-87654896ca619ff64f94d3881d6bd0ec7b29e25f.tar.gz blackbird-op-linux-87654896ca619ff64f94d3881d6bd0ec7b29e25f.zip |
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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index 41d494d79709..f6be14f9ec14 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; |