projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13ceef0
)
ocfs2: Silence gcc warning in ocfs2_write_zero_page().
author
Joel Becker
<joel.becker@oracle.com>
Fri, 16 Jul 2010 20:32:33 +0000
(13:32 -0700)
committer
Joel 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/file.c
b/fs/ocfs2/file.c
index ac15911b31c45d64563f4fe659259abf21f4e0fc..2b10b36d15772efcae056a62b4df1a9fe8aa2c53 100644
(file)
--- 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);