]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Remove dead code in qemuDomainAssignPCIAddresses revert patch
authorErik Skultety <eskultet@redhat.com>
Wed, 21 Jan 2015 16:49:24 +0000 (17:49 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 23 Jan 2015 10:03:45 +0000 (11:03 +0100)
commit2fbfb3ac41a0963df86ffb6a8d78804295a04167
tree5e5bd400a75377ba1ecb0c45320ff6fbef04f23a
parentd66e136bd5ce27addd2efabb8d604b40d754865f
qemu: Remove dead code in qemuDomainAssignPCIAddresses revert patch

As it turned out, fix of dead code 419a22 changed the affected condition
from "never true" to "always true", so better fix would be to change the
return code of virDomainMaybeAddController from 0 to 1 if
a new bridge has been added, thus distinguishing case when we didn't need to
add any controller and case we successfully added one.

The return code is changed in the next commit
src/qemu/qemu_command.c