Remove use of storagePrivateData/networkPrivateData from vbox

The vbox driver can use the main hypervisor private data and
so does not need to use the storage/network private data fields.
This commit is contained in:
Daniel P. Berrange 2014-11-14 15:24:26 +00:00
parent 7b1ba9566b
commit 47b7f661a4
2 changed files with 6 additions and 6 deletions

View File

@ -102,17 +102,17 @@ vboxNetworkOpen(virConnectPtr conn,
goto cleanup;
VIR_DEBUG("network initialized");
/* conn->networkPrivateData = some network specific data */
return VIR_DRV_OPEN_SUCCESS;
cleanup:
return VIR_DRV_OPEN_DECLINED;
}
static int vboxNetworkClose(virConnectPtr conn)
static int vboxNetworkClose(virConnectPtr conn ATTRIBUTE_UNUSED)
{
VIR_DEBUG("network uninitialized");
conn->networkPrivateData = NULL;
return 0;
}

View File

@ -58,14 +58,14 @@ vboxStorageOpen(virConnectPtr conn,
return VIR_DRV_OPEN_ERROR;
VIR_DEBUG("vbox storage initialized");
/* conn->storagePrivateData = some storage specific data */
return VIR_DRV_OPEN_SUCCESS;
}
static int vboxStorageClose(virConnectPtr conn)
static int vboxStorageClose(virConnectPtr conn ATTRIBUTE_UNUSED)
{
VIR_DEBUG("vbox storage uninitialized");
conn->storagePrivateData = NULL;
return 0;
}