summaryrefslogtreecommitdiff
path: root/fs/gfs2/file.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/file.c
parentdfe4d34b39b80faff52489f950a18523da7581bf (diff)
downloadlinux-3.10-87654896ca619ff64f94d3881d6bd0ec7b29e25f.tar.gz
linux-3.10-87654896ca619ff64f94d3881d6bd0ec7b29e25f.tar.bz2
linux-3.10-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/file.c')
-rw-r--r--fs/gfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 46f6f9ac1eb..6336bc6bf45 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -609,7 +609,7 @@ static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
struct inode *inode = mapping->host;
int sync_state = inode->i_state & (I_DIRTY_SYNC|I_DIRTY_DATASYNC);
struct gfs2_inode *ip = GFS2_I(inode);
- int ret, ret1 = 0;
+ int ret = 0, ret1 = 0;
if (mapping->nrpages) {
ret1 = filemap_fdatawrite_range(mapping, start, end);