ocfs2: Silence gcc warning in ocfs2_write_zero_page().
authorJoel Becker <joel.becker@oracle.com>
Fri, 16 Jul 2010 20:32:33 +0000 (13:32 -0700)
committerJoel Becker <joel.becker@oracle.com>
Fri, 16 Jul 2010 20:33:39 +0000 (13:33 -0700)
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>
fs/ocfs2/file.c

index ac15911b31c45d64563f4fe659259abf21f4e0fc..2b10b36d15772efcae056a62b4df1a9fe8aa2c53 100644 (file)
@@ -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);