]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: virDomainDefMaybeAddController tweak return code
authorErik Skultety <eskultet@redhat.com>
Wed, 21 Jan 2015 16:49:51 +0000 (17:49 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 23 Jan 2015 10:03:45 +0000 (11:03 +0100)
commit852cea52ec2e0db63b561ca1fdffb5250eaf737e
tree3d3a3c436de816602c77e261e349b40a7f974487
parent2fbfb3ac41a0963df86ffb6a8d78804295a04167
conf: virDomainDefMaybeAddController tweak return code

Previously the function returned either -1 in case of an error or 0 on
success. However, we should also distinguish between a case we
successfully added a controller and a case there wasn't a need to add any
controller
src/conf/domain_conf.c