]> sourceware.org Git - lvm2.git/commitdiff
Fix compiler warning.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 10 Aug 2011 16:44:17 +0000 (16:44 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 10 Aug 2011 16:44:17 +0000 (16:44 +0000)
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].

lib/metadata/lv_manip.c

index e540c8256e1220fad6f60d0ea74d0b69aaac0813..6e50bad46c0d0b38e590c372f01e2298962286d0 100644 (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++) {
This page took 0.050436 seconds and 5 git commands to generate.