mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vboxDumpDisplay: more indentation reducing
VRDxEnabled is initialized to false. Put the if (VRDxEnabled) on the top level to reduce nesting.
This commit is contained in:
parent
5cb926f90d
commit
bf1691e388
@ -3398,8 +3398,9 @@ vboxDumpDisplay(virDomainDefPtr def, vboxGlobalData *data, IMachine *machine)
|
||||
}
|
||||
|
||||
gVBoxAPI.UIMachine.GetVRDxServer(machine, &VRDxServer);
|
||||
if (VRDxServer) {
|
||||
if (VRDxServer)
|
||||
gVBoxAPI.UIVRDxServer.GetEnabled(VRDxServer, &VRDxEnabled);
|
||||
|
||||
if (VRDxEnabled) {
|
||||
|
||||
totalPresent++;
|
||||
@ -3438,9 +3439,8 @@ vboxDumpDisplay(virDomainDefPtr def, vboxGlobalData *data, IMachine *machine)
|
||||
virReportOOMError();
|
||||
}
|
||||
}
|
||||
VBOX_RELEASE(VRDxServer);
|
||||
}
|
||||
|
||||
VBOX_RELEASE(VRDxServer);
|
||||
VBOX_UTF8_FREE(valueTypeUtf8);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user