mirror of https://gitee.com/openkylin/libvirt.git
vbox: Remove unused mediumEmpty
Remove the setting since it's unused as of commit34364df3
which should have never copied it in from the old code which ended up getting removed as part of commitc7c286c6
.
This commit is contained in:
parent
ff67685b17
commit
60227fd5ee
|
@ -965,7 +965,7 @@ vboxAttachDrives(virDomainDefPtr def, vboxDriverPtr data, IMachine *machine)
|
|||
virDomainDiskDefPtr disk = NULL;
|
||||
PRUnichar *storageCtlName = NULL;
|
||||
IMedium *medium = NULL;
|
||||
PRUnichar *mediumFileUtf16 = NULL, *mediumEmpty = NULL;
|
||||
PRUnichar *mediumFileUtf16 = NULL;
|
||||
PRUint32 devicePort, deviceSlot, deviceType, accessMode;
|
||||
vboxIID mediumUUID;
|
||||
|
||||
|
@ -1056,13 +1056,10 @@ vboxAttachDrives(virDomainDefPtr def, vboxDriverPtr data, IMachine *machine)
|
|||
deviceType, accessMode, &medium);
|
||||
|
||||
if (!medium) {
|
||||
VBOX_UTF8_TO_UTF16("", &mediumEmpty);
|
||||
|
||||
rc = gVBoxAPI.UIVirtualBox.OpenMedium(data->vboxObj,
|
||||
mediumFileUtf16,
|
||||
deviceType, accessMode,
|
||||
&medium);
|
||||
VBOX_UTF16_FREE(mediumEmpty);
|
||||
}
|
||||
|
||||
if (!medium) {
|
||||
|
|
Loading…
Reference in New Issue