Commit 5453258d authored by Joel Becker's avatar Joel Becker

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: default avatarJoel Becker <joel.becker@oracle.com>
parent 13ceef09
...@@ -767,7 +767,7 @@ static int ocfs2_write_zero_page(struct inode *inode, u64 abs_from, ...@@ -767,7 +767,7 @@ static int ocfs2_write_zero_page(struct inode *inode, u64 abs_from,
struct page *page; struct page *page;
unsigned long index = abs_from >> PAGE_CACHE_SHIFT; unsigned long index = abs_from >> PAGE_CACHE_SHIFT;
handle_t *handle = NULL; handle_t *handle = NULL;
int ret; int ret = 0;
unsigned zero_from, zero_to, block_start, block_end; unsigned zero_from, zero_to, block_start, block_end;
BUG_ON(abs_from >= abs_to); BUG_ON(abs_from >= abs_to);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment