Remove dead code in qemuDomainAssignPCIAddresses

We tested for positive return value from virDomainMaybeAddController,
but it returns 0 or -1 only resulting in a dead code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Erik Skultety 2015-01-15 14:14:18 +01:00 committed by Michal Privoznik
parent 93c8ca9974
commit 419a22d5db

View File

@ -1509,9 +1509,9 @@ qemuDomainAssignPCIAddresses(virDomainDefPtr def,
i, bus->model)) < 0) i, bus->model)) < 0)
goto cleanup; goto cleanup;
/* If we added a new bridge, we will need one more address */ /* If we added a new bridge, we will need one more address */
if (rv > 0 && virDomainPCIAddressReserveNextSlot(addrs, &info, if (rv == 0 &&
flags) < 0) virDomainPCIAddressReserveNextSlot(addrs, &info, flags) < 0)
goto cleanup; goto cleanup;
} }
nbuses = addrs->nbuses; nbuses = addrs->nbuses;
virDomainPCIAddressSetFree(addrs); virDomainPCIAddressSetFree(addrs);