Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/qemu/qemu_snapshot.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index 8ad441e41a..5c974280af 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -2276,14 +2276,11 @@ qemuSnapshotRevert(virDomainObj *vm, goto endjob; } - ret = 0; + ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined); endjob: qemuProcessEndJob(driver, vm); - if (ret == 0) - ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined); - return ret; } -- 2.31.1