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

Refactor vgsplit - remove bad2 label.

No functional change.


Author: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-09-02 21:26:01 +00:00
parent 5bad8ac847
commit 9cc31e6dff

View File

@ -287,7 +287,8 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
if (vg_read_error(vg_to)) {
vg_release(vg_to);
stack;
goto bad2;
unlock_and_release_vg(cmd, vg_from, vg_name_from);
return ECMD_FAILED;
}
} else if (vg_read_error(vg_to) == SUCCESS) {
@ -427,7 +428,6 @@ int vgsplit(struct cmd_context *cmd, int argc, char **argv)
bad:
unlock_and_release_vg(cmd, vg_to, vg_name_to);
bad2:
unlock_and_release_vg(cmd, vg_from, vg_name_from);
return r;
}