mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Remove dead code
Since commit id '20a0fa8e' removed the QEMU_CAPS_DEVICE, Coverity notes that it's no longer possible to have 'addrs' be NULL when checking for a live domain since qemuDomainPCIAddressSetCreate would have jumped to cleanup if addrs was NULL.
This commit is contained in:
parent
54f325e925
commit
f30672d5ee
@ -1614,15 +1614,11 @@ qemuDomainAssignPCIAddresses(virDomainDefPtr def,
|
|||||||
|
|
||||||
if (obj && obj->privateData) {
|
if (obj && obj->privateData) {
|
||||||
priv = obj->privateData;
|
priv = obj->privateData;
|
||||||
if (addrs) {
|
|
||||||
/* if this is the live domain object, we persist the PCI addresses */
|
/* if this is the live domain object, we persist the PCI addresses */
|
||||||
virDomainPCIAddressSetFree(priv->pciaddrs);
|
virDomainPCIAddressSetFree(priv->pciaddrs);
|
||||||
priv->persistentAddrs = 1;
|
priv->persistentAddrs = 1;
|
||||||
priv->pciaddrs = addrs;
|
priv->pciaddrs = addrs;
|
||||||
addrs = NULL;
|
addrs = NULL;
|
||||||
} else {
|
|
||||||
priv->persistentAddrs = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user