diff options
author | Joel Becker <joel.becker@oracle.com> | 2010-07-16 13:32:33 -0700 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-07-16 13:33:39 -0700 |
commit | 5453258d532e72731b0829e4fefd36dd611a2fff (patch) | |
tree | 6caa67ad70df5cd266ff42f458d6994b689898a5 /fs | |
parent | 13ceef099edd2b70c5a6f3a9ef5d6d97cda2e096 (diff) | |
download | op-kernel-dev-5453258d532e72731b0829e4fefd36dd611a2fff.zip op-kernel-dev-5453258d532e72731b0829e4fefd36dd611a2fff.tar.gz |
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 ac15911..2b10b36 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); |