diff options
author | NeilBrown <neilb@suse.de> | 2013-05-09 02:27:49 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-06-14 00:10:26 +0200 |
commit | 3f6bbd3ffd7b733dd705e494663e5761aa2cb9c1 (patch) | |
tree | 4e9e0ed53009c4fbdf68b968ce4528aa5ca048f8 /drivers/md/dm-raid.c | |
parent | DM RAID: Fix raid_resume not reviving failed devices in all cases (diff) | |
download | linux-3f6bbd3ffd7b733dd705e494663e5761aa2cb9c1.tar.xz linux-3f6bbd3ffd7b733dd705e494663e5761aa2cb9c1.zip |
dm-raid: silence compiler warning on rebuilds_per_group.
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>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r-- | drivers/md/dm-raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 49f0bd510fb9..0f5a6fb5978f 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -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++) |