projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf97b67
)
GFS2: Fix compiler warning from previous patch
author
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 28 Sep 2010 09:17:47 +0000
(10:17 +0100)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Tue, 28 Sep 2010 09:17:47 +0000
(10:17 +0100)
This shouldn't really be required, but gcc can't tell that
"al" is only accessed when initialised.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/aops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/gfs2/aops.c
b/fs/gfs2/aops.c
index 1bf178831ae8c508da41035ea587e8ed6d060f18..6b24afb96aaedade304b48bb427e664eae8e6e53 100644
(file)
--- a/
fs/gfs2/aops.c
+++ b/
fs/gfs2/aops.c
@@
-615,7
+615,7
@@
static int gfs2_write_begin(struct file *file, struct address_space *mapping,
unsigned int data_blocks = 0, ind_blocks = 0, rblocks;
int alloc_required;
int error = 0;
- struct gfs2_alloc *al;
+ struct gfs2_alloc *al
= NULL
;
pgoff_t index = pos >> PAGE_CACHE_SHIFT;
unsigned from = pos & (PAGE_CACHE_SIZE - 1);
unsigned to = from + len;