You need to sign in or sign up before continuing.
提交 f2a76a26 编写于 作者: J John Ferlan

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.
上级 85bcc022
...@@ -14072,7 +14072,6 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver, ...@@ -14072,7 +14072,6 @@ qemuDomainSnapshotCreateSingleDiskActive(virQEMUDriverPtr driver,
dd->prepared = true; dd->prepared = true;
/* create the actual snapshot */ /* 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. /* The monitor is only accessed if qemu doesn't support transactions.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册