mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
vbox_common: Drop needless set to NULL
There are two places where a variable passed to VBOX_RELEASE() macro is set to NULL explicitly. There is no need for that because the macro sets the variable to NULL already. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e0241f334d
commit
1688d2527f
@ -2808,7 +2808,6 @@ static int vboxDomainGetInfo(virDomainPtr dom, virDomainInfoPtr info)
|
||||
if (systemProperties) {
|
||||
gVBoxAPI.UISystemProperties.GetMaxGuestRAM(systemProperties, &maxMemorySize);
|
||||
VBOX_RELEASE(systemProperties);
|
||||
systemProperties = NULL;
|
||||
}
|
||||
|
||||
gVBoxAPI.UIMachine.GetCPUCount(machine, &CPUCount);
|
||||
@ -4015,7 +4014,6 @@ static char *vboxDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||
gVBoxAPI.UISystemProperties.GetSerialPortCount(systemProperties, &serialPortCount);
|
||||
gVBoxAPI.UISystemProperties.GetParallelPortCount(systemProperties, ¶llelPortCount);
|
||||
VBOX_RELEASE(systemProperties);
|
||||
systemProperties = NULL;
|
||||
}
|
||||
/* Currently setting memory and maxMemory as same, cause
|
||||
* the notation here seems to be inconsistent while
|
||||
|
Loading…
Reference in New Issue
Block a user