Skip to content

Commit

Permalink
dm-raid: silence compiler warning on rebuilds_per_group.
Browse files Browse the repository at this point in the history
This doesn't really need to be initialised, but it doesn't hurt,
silences the compiler, and as it is a counter it makes sense for it to
start at zero.

Signed-off-by: NeilBrown <neilb@suse.de>
  • Loading branch information
NeilBrown committed Jun 13, 2013
1 parent a4dc163 commit 3f6bbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static int validate_region_size(struct raid_set *rs, unsigned long region_size)
static int validate_raid_redundancy(struct raid_set *rs)
{
unsigned i, rebuild_cnt = 0;
unsigned rebuilds_per_group, copies, d;
unsigned rebuilds_per_group = 0, copies, d;
unsigned group_size, last_group_start;

for (i = 0; i < rs->md.raid_disks; i++)
Expand Down

0 comments on commit 3f6bbd3

Please sign in to comment.