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:
parent
e047f04394
commit
3d845e492a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user