mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +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)
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user