diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-07-16 16:32:33 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-07-16 16:33:39 -0400 |
commit | 5453258d532e72731b0829e4fefd36dd611a2fff (patch) | |
tree | 6caa67ad70df5cd266ff42f458d6994b689898a5 /fs | |
parent | 13ceef099edd2b70c5a6f3a9ef5d6d97cda2e096 (diff) |
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')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
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, | |||
767 | struct page *page; | 767 | struct page *page; |
768 | unsigned long index = abs_from >> PAGE_CACHE_SHIFT; | 768 | unsigned long index = abs_from >> PAGE_CACHE_SHIFT; |
769 | handle_t *handle = NULL; | 769 | handle_t *handle = NULL; |
770 | int ret; | 770 | int ret = 0; |
771 | unsigned zero_from, zero_to, block_start, block_end; | 771 | unsigned zero_from, zero_to, block_start, block_end; |
772 | 772 | ||
773 | BUG_ON(abs_from >= abs_to); | 773 | BUG_ON(abs_from >= abs_to); |