From: Peter Krempa Date: Fri, 4 Mar 2022 13:37:13 +0000 (+0100) Subject: qemuSnapshotCreateActiveExternal: Remove duplicit assignment X-Git-Tag: v8.2.0-rc1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825476beda5c473c51e5a239c5802ffc9f6e501c;p=thirdparty%2Flibvirt.git qemuSnapshotCreateActiveExternal: Remove duplicit assignment The block of code pausing the VM assigns 'resume' to true but it's already true because of the previous condition. The code is deliberately kept in two blocks as upcoming changes will modify both conditions. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index 3fb1d3abe0..a7901779fc 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -1400,8 +1400,6 @@ qemuSnapshotCreateActiveExternal(virQEMUDriver *driver, _("guest unexpectedly quit")); goto cleanup; } - - resume = true; } }