From e0a4a011c195bb17b955cedaa172255e3ff888e5 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 1 Oct 2019 07:45:50 +0200 Subject: [PATCH] conf: snapshot: Remove 'update_current' parameter from virDomainSnapshotRedefinePrep MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The variable is unused so we can drop it. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/conf/snapshot_conf.c | 1 - src/conf/snapshot_conf.h | 1 - src/qemu/qemu_driver.c | 2 +- src/test/test_driver.c | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index f280202c96..eefe4e355e 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -983,7 +983,6 @@ virDomainSnapshotRedefinePrep(virDomainObjPtr vm, virDomainSnapshotDefPtr *defptr, virDomainMomentObjPtr *snap, virDomainXMLOptionPtr xmlopt, - bool *update_current G_GNUC_UNUSED, unsigned int flags) { virDomainSnapshotDefPtr def = *defptr; diff --git a/src/conf/snapshot_conf.h b/src/conf/snapshot_conf.h index 7e2ffa9d60..b0b52e6a34 100644 --- a/src/conf/snapshot_conf.h +++ b/src/conf/snapshot_conf.h @@ -136,7 +136,6 @@ int virDomainSnapshotRedefinePrep(virDomainObjPtr vm, virDomainSnapshotDefPtr *def, virDomainMomentObjPtr *snap, virDomainXMLOptionPtr xmlopt, - bool *update_current, unsigned int flags); int virDomainSnapshotRedefineValidate(virDomainSnapshotDefPtr def, diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 33a8c53d24..89e4d158af 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -15903,7 +15903,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain, if (redefine) { if (virDomainSnapshotRedefinePrep(vm, &def, &snap, driver->xmlopt, - &update_current, flags) < 0) + flags) < 0) goto endjob; } else { /* Easiest way to clone inactive portion of vm->def is via diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 79320e6093..6c1c56d446 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -8575,7 +8575,7 @@ testDomainSnapshotCreateXML(virDomainPtr domain, if (redefine) { if (virDomainSnapshotRedefinePrep(vm, &def, &snap, privconn->xmlopt, - &update_current, flags) < 0) + flags) < 0) goto cleanup; } else { if (!(def->parent.dom = virDomainDefCopy(vm->def, -- 2.47.2