From 825476beda5c473c51e5a239c5802ffc9f6e501c Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 4 Mar 2022 14:37:13 +0100 Subject: [PATCH] qemuSnapshotCreateActiveExternal: Remove duplicit assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/qemu/qemu_snapshot.c | 2 -- 1 file changed, 2 deletions(-) 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; } }