Skip to content

Commit

Permalink
ocfs2: Silence gcc warning in ocfs2_write_zero_page().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joel Becker committed Jul 16, 2010
1 parent 13ceef0 commit 5453258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5453258

Please sign in to comment.