1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-30 10:50:34 +03:00

cleanup: drop extra test for NULL

vg cannot be NULL here - it's been already used in the code above.
This commit is contained in:
Zdenek Kabelac 2015-05-08 23:01:32 +02:00
parent e047f04394
commit 3d845e492a

View File

@ -89,8 +89,7 @@ int pvmove_update_metadata(struct cmd_context *cmd, struct volume_group *vg,
}
if (!suspend_lv(cmd, lv_mirr)) {
if (vg)
vg_revert(vg);
vg_revert(vg);
log_error("ABORTING: Temporary pvmove mirror reload failed.");
if (!revert_lv(cmd, lv_mirr))
stack;