mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemuDomainAttachControllerDevice: remove dead code
After a successful attach, the device address has already been set. Remove the pointless assignment.
This commit is contained in:
parent
2690b5b930
commit
7afaaa934b
@ -590,11 +590,8 @@ int qemuDomainAttachControllerDevice(virQEMUDriverPtr driver,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if (controller->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE)
|
||||
controller->info.type = VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI;
|
||||
if (ret == 0)
|
||||
virDomainControllerInsertPreAlloced(vm->def, controller);
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (ret != 0 && releaseaddr)
|
||||
|
Loading…
Reference in New Issue
Block a user