Skip to contentSkip to conversation

master - raid: ensure enum is defined

PATCH Zdenek Kabelac 1 participant 1 message Jun 30, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ad286a32275283f018adabbf96d569d5c1fd065a
Commit:        ad286a32275283f018adabbf96d569d5c1fd065a
Parent:        c31614eccc41746734e712143d0f86c96f95dd4c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jun 30 19:34:52 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 30 20:39:02 2017 +0200

raid: ensure enum is defined

Just making sure enum is always defined.

TODO: code path using this enum needs closer inspection.

---
 lib/metadata/raid_manip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/raid_manip.c +1 -1
index 110a7d3..df7e062 100644
@@ -2232,7 +2232,7 @@ static int _raid_reshape(struct logical_volume *lv,
 	int force_repair = 0, r, too_few = 0;
 	unsigned devs_health, devs_in_sync;
 	uint32_t new_image_count, old_image_count;
-	enum alloc_where where_it_was;
+	enum alloc_where where_it_was = alloc_none;
 	struct lv_segment *seg = first_seg(lv);
 	struct dm_list removal_lvs;