mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: Always format formatStr for blockdev-snapshot-sync
The qemuDomainSnapshotPrepare should always set a > 0 format value anyway, so remove the check. Found by Coverity.
This commit is contained in:
parent
85bcc0220f
commit
f2a76a263f
@ -14072,8 +14072,7 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
|
||||
dd->prepared = true;
|
||||
|
||||
/* create the actual snapshot */
|
||||
if (dd->src->format)
|
||||
formatStr = virStorageFileFormatTypeToString(dd->src->format);
|
||||
formatStr = virStorageFileFormatTypeToString(dd->src->format);
|
||||
|
||||
/* The monitor is only accessed if qemu doesn't support transactions.
|
||||
* Otherwise the following monitor command only constructs the command.
|
||||
|
Loading…
x
Reference in New Issue
Block a user