]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_command: Resolve Coverity DEADCODE
authorJohn Ferlan <jferlan@redhat.com>
Wed, 27 Aug 2014 20:33:12 +0000 (16:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 28 Aug 2014 12:12:17 +0000 (08:12 -0400)
commit84bfb11b69140fbcdb36d7ce1f84489c14a31a02
treec8e6cd3158aa9128bc60866bdd7f650ce31d4976
parentec10ff9eb9c1d35f0516022c7b78d4f97bde8b65
qemu_command: Resolve Coverity DEADCODE

One useless warning, but the other one rather pertinent. On entry
the 'trans' variable is initialized to VIR_DOMAIN_DISK_TRANS_DEFAULT.
When the "trans" was found in the parsing loop it def->geometry.trans
was assigned to the return from virDomainDiskGeometryTransTypeFromString
and then 'trans' was used to do the comparison to see if it was valid.

So remove 'trans' and use def->geometry.trans properly
src/qemu/qemu_command.c