mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
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:
parent
93c8ca9974
commit
419a22d5db
@ -1509,9 +1509,9 @@ qemuDomainAssignPCIAddresses(virDomainDefPtr def,
|
||||
i, bus->model)) < 0)
|
||||
goto cleanup;
|
||||
/* If we added a new bridge, we will need one more address */
|
||||
if (rv > 0 && virDomainPCIAddressReserveNextSlot(addrs, &info,
|
||||
flags) < 0)
|
||||
goto cleanup;
|
||||
if (rv == 0 &&
|
||||
virDomainPCIAddressReserveNextSlot(addrs, &info, flags) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
nbuses = addrs->nbuses;
|
||||
virDomainPCIAddressSetFree(addrs);
|
||||
|
Loading…
Reference in New Issue
Block a user