mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: gcc can't see the code path
This is a bit to hard for gcc to see the condition can't be triggered, so make it easier and initialize to 0.
This commit is contained in:
parent
ac6cd9baa7
commit
74878bc2bc
@ -1803,8 +1803,7 @@ static void _lvconvert_raid_repair_ask(struct cmd_context *cmd, int *replace_dev
|
||||
|
||||
static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *lp)
|
||||
{
|
||||
int replace = 0;
|
||||
int uninitialized_var(image_count);
|
||||
int replace = 0, image_count = 0;
|
||||
struct dm_list *failed_pvs;
|
||||
struct cmd_context *cmd = lv->vg->cmd;
|
||||
struct lv_segment *seg = first_seg(lv);
|
||||
|
Loading…
Reference in New Issue
Block a user