From: John Ferlan Date: Wed, 27 Aug 2014 13:14:16 +0000 (-0400) Subject: qemu_driver: Resolve Coverity CONSTANT_EXPRESSION_RESULT X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b9be89c5624e472b18c8db2ff4081bc99c65384;p=thirdparty%2Flibvirt.git qemu_driver: Resolve Coverity CONSTANT_EXPRESSION_RESULT The call to virDomainSnapshotRedefinePrep() had a spurrious ! in front of it which caused Coverity to complan that the expression is always false. (cherry picked from commit 9d7254de430f7ef7a4c6a2a20718942369ce9d06) --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 8e65eeb497..b3f47d12ce 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -13357,8 +13357,8 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain, } if (redefine) { - if (!virDomainSnapshotRedefinePrep(domain, vm, &def, &snap, - &update_current, flags) < 0) + if (virDomainSnapshotRedefinePrep(domain, vm, &def, &snap, + &update_current, flags) < 0) goto cleanup; } else { /* Easiest way to clone inactive portion of vm->def is via