]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenapi: Resolve Coverity REVERSE_INULL
authorJohn Ferlan <jferlan@redhat.com>
Tue, 10 Mar 2015 23:14:31 +0000 (19:14 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 11 Mar 2015 18:38:59 +0000 (14:38 -0400)
commiteab968c7d7b4ee94e504499dc2a4ea70643718a0
treeea512fa5b6d93a127489f397ba71704c8eab9e0d
parent6da29e0faa44209bcbd737920d93c760104b8349
xenapi: Resolve Coverity REVERSE_INULL

Coverity notes in xenapiDomainGetXMLDesc that 'vms' is dereferenced
a few times before a "if (vms) xen_vm_set_free(vms);" call is made.
Since we'd exit out much sooner if the fetch of the vms failed, just
remove the unnecessary "if (vms)" check.
src/xenapi/xenapi_driver.c