]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuSnapshotCreateActiveExternal: Remove duplicit assignment
authorPeter Krempa <pkrempa@redhat.com>
Fri, 4 Mar 2022 13:37:13 +0000 (14:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 11 Mar 2022 12:55:50 +0000 (13:55 +0100)
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 <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_snapshot.c

index 3fb1d3abe01ceae167401683240409c4280290e3..a7901779fc26381feea6df8d30aa87d7bf9dfdcc 100644 (file)
@@ -1400,8 +1400,6 @@ qemuSnapshotCreateActiveExternal(virQEMUDriver *driver,
                                _("guest unexpectedly quit"));
                 goto cleanup;
             }
-
-            resume = true;
         }
     }