1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Removing call of release_vg(NULL)

Since we are in error path were vg must be always NULL,
skip call of release_vg() like we do in other places.
This commit is contained in:
Zdenek Kabelac 2012-03-12 14:43:12 +00:00
parent b6476cba88
commit 2412ede4c6

View File

@ -3021,7 +3021,6 @@ static struct volume_group *_vg_read(struct cmd_context *cmd,
(!use_precommitted && (!use_precommitted &&
!(vg = mda->ops->vg_read(fid, vgname, mda, 0)))) { !(vg = mda->ops->vg_read(fid, vgname, mda, 0)))) {
inconsistent = 1; inconsistent = 1;
release_vg(vg);
continue; continue;
} }