]> sourceware.org Git - lvm2.git/commitdiff
Removing call of release_vg(NULL)
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 12 Mar 2012 14:43:12 +0000 (14:43 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 12 Mar 2012 14:43:12 +0000 (14:43 +0000)
Since we are in error path were vg must be always NULL,
skip call of release_vg() like we do in other places.

lib/metadata/metadata.c

index 2197f22cae5ca5167660c1ba4f027e6faf50f29e..04cde3f73fd03aab8aa66d2636e37c206f583d45 100644 (file)
@@ -3021,7 +3021,6 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
                    (!use_precommitted &&
                     !(vg = mda->ops->vg_read(fid, vgname, mda, 0)))) {
                        inconsistent = 1;
-                       release_vg(vg);
                        continue;
                }
 
This page took 0.035665 seconds and 5 git commands to generate.