summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-07-16 22:32:33 +0200
committerJoel Becker <joel.becker@oracle.com>2010-07-16 22:33:39 +0200
commit5453258d532e72731b0829e4fefd36dd611a2fff (patch)
tree6caa67ad70df5cd266ff42f458d6994b689898a5 /fs/ocfs2/file.c
parentjbd2/ocfs2: Fix block checksumming when a buffer is used in several transactions (diff)
downloadlinux-5453258d532e72731b0829e4fefd36dd611a2fff.tar.xz
linux-5453258d532e72731b0829e4fefd36dd611a2fff.zip
ocfs2: Silence gcc warning in ocfs2_write_zero_page().
ocfs2_write_zero_page() has a loop that won't ever be skipped, but gcc doesn't know that. Set ret=0 just to make gcc happy. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index ac15911b31c4..2b10b36d1577 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -767,7 +767,7 @@ static int ocfs2_write_zero_page(struct inode *inode, u64 abs_from,
struct page *page;
unsigned long index = abs_from >> PAGE_CACHE_SHIFT;
handle_t *handle = NULL;
- int ret;
+ int ret = 0;
unsigned zero_from, zero_to, block_start, block_end;
BUG_ON(abs_from >= abs_to);