mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: older gcc is not smart enough
Avoid gcc warning about uninitialized 'seg' variable. It's not easy for older gcc compiler to deduce it's been set.
This commit is contained in:
parent
d7065f154e
commit
a62cea3371
@ -2958,7 +2958,7 @@ static int _lvconvert_pool(struct cmd_context *cmd,
|
||||
/* Swap normal LV with pool's metadata LV ? */
|
||||
if (lv_is_pool(pool_lv)) {
|
||||
/* Swap names between old and new metadata LV */
|
||||
if (!detach_pool_metadata_lv(seg, &pool_metadata_lv))
|
||||
if (!detach_pool_metadata_lv(first_seg(pool_lv), &pool_metadata_lv))
|
||||
return_0;
|
||||
old_name = metadata_lv->name;
|
||||
if (!lv_rename_update(cmd, metadata_lv, "pvmove_tmeta", 0))
|
||||
|
Loading…
Reference in New Issue
Block a user