Skip to content

Commit

Permalink
ocfs2: Silence a gcc warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joel Becker committed May 18, 2010
1 parent 5f5261a commit 18d3a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/suballoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 18d3a98

Please sign in to comment.