1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix compiler warning.

Compiler complaining that meta_lv could be used uninitialized.  (Not true
because it is protected by 'clear_metadata'.)  I switched to using 'lv->vg',
as it makes no difference to vg_[write|commit].
This commit is contained in:
Jonathan Earl Brassow 2011-08-10 16:44:17 +00:00
parent 05960a0c55
commit e01bcc6884

View File

@ -2389,7 +2389,7 @@ static int _lv_extend_layered_lv(struct alloc_handle *ah,
/*
* We must clear the metadata areas upon creation.
*/
if (!vg_write(meta_lv->vg) || !vg_commit(meta_lv->vg))
if (!vg_write(lv->vg) || !vg_commit(lv->vg))
return_0;
for (s = 0; s < seg->area_count; s++) {