mirror of https://gitee.com/openkylin/libvirt.git
qemuDomainAttachDeviceConfig: Remove pointless assignment
'dev->data.rng' is NULLed by VIR_APPEND_ELEMENT Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
4e7576a741
commit
aa76e5d0a4
|
@ -7319,8 +7319,6 @@ qemuDomainAttachDeviceConfig(virDomainDef *vmdef,
|
|||
}
|
||||
|
||||
VIR_APPEND_ELEMENT(vmdef->rngs, vmdef->nrngs, dev->data.rng);
|
||||
dev->data.rng = NULL;
|
||||
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_DEVICE_MEMORY:
|
||||
|
|
Loading…
Reference in New Issue