ocfs2: Silence a gcc warning.
authorJoel Becker <joel.becker@oracle.com>
Tue, 18 May 2010 23:47:55 +0000 (16:47 -0700)
committerJoel 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

index a327c80..f4c2a9e 100644 (file)
@@ -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,