aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-05-18 19:47:55 -0400
committerJoel Becker <joel.becker@oracle.com>2010-05-18 19:48:41 -0400
commit18d3a98f3c1b0e27ce026afa4d1ef042f2903726 (patch)
tree66316c0fc51882b3110d548e715e7b0ae4ab4b6b
parent5f5261acb059f43c7fb9a2fac9d32c6ef4df2ed5 (diff)
ocfs2: Silence a gcc warning.
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>
-rw-r--r--fs/ocfs2/suballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
index a327c80721ee..f4c2a9eb8c4d 100644
--- 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,
484 unsigned int min_bits, 484 unsigned int min_bits,
485 u32 *bit_off, u32 *num_bits) 485 u32 *bit_off, u32 *num_bits)
486{ 486{
487 int status; 487 int status = 0;
488 488
489 while (min_bits) { 489 while (min_bits) {
490 status = ocfs2_claim_clusters(handle, ac, min_bits, 490 status = ocfs2_claim_clusters(handle, ac, min_bits,