Skip to content

Commit

Permalink
udf: remove else after return in __load_block_bitmap()
Browse files Browse the repository at this point in the history
else after return is not needed.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Fabian Frederick authored and Jan Kara committed Mar 14, 2015
1 parent f4a45c9 commit 6fbaad8
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions fs/udf/balloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ static int __load_block_bitmap(struct super_block *sb,
block_group, nr_groups);
}

if (bitmap->s_block_bitmap[block_group]) {
if (bitmap->s_block_bitmap[block_group])
return block_group;
} else {
retval = read_block_bitmap(sb, bitmap, block_group,
block_group);
if (retval < 0)
return retval;
return block_group;
}

retval = read_block_bitmap(sb, bitmap, block_group, block_group);
if (retval < 0)
return retval;

return block_group;
}

static inline int load_block_bitmap(struct super_block *sb,
Expand Down

0 comments on commit 6fbaad8

Please sign in to comment.