projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5261a
)
ocfs2: Silence a gcc warning.
author
Joel Becker
<joel.becker@oracle.com>
Tue, 18 May 2010 23:47:55 +0000
(16:47 -0700)
committer
Joel Becker
<joel.becker@oracle.com>
Tue, 18 May 2010 23:48:41 +0000
(16:48 -0700)
ocfs2_block_group_claim_bits() is never called with min_bits=0, but we
shouldn't leave status undefined if it ever is.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/suballoc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/suballoc.c
b/fs/ocfs2/suballoc.c
index a327c80721ee2ddd80390336bf5f21c5c7eb568e..f4c2a9eb8c4d75a6354fb52c37ba93edb81bebd5 100644
(file)
--- a/
fs/ocfs2/suballoc.c
+++ b/
fs/ocfs2/suballoc.c
@@
-484,7
+484,7
@@
static int ocfs2_block_group_claim_bits(struct ocfs2_super *osb,
unsigned int min_bits,
u32 *bit_off, u32 *num_bits)
{
- int status;
+ int status
= 0
;
while (min_bits) {
status = ocfs2_claim_clusters(handle, ac, min_bits,