bhyve: cleanup unnecessary variables

This commit is contained in:
Maxim Nestratov 2016-03-28 15:24:49 +03:00
parent 7d3b10a9fb
commit f999f77d7d

View File

@ -1187,8 +1187,6 @@ bhyveStateInitialize(bool privileged,
virStateInhibitCallback callback ATTRIBUTE_UNUSED,
void *opaque ATTRIBUTE_UNUSED)
{
virConnectPtr conn = NULL;
if (!privileged) {
VIR_INFO("Not running privileged, disabling driver");
return 0;
@ -1259,12 +1257,9 @@ bhyveStateInitialize(bool privileged,
virBhyveProcessReconnectAll(bhyve_driver);
virObjectUnref(conn);
return 0;
cleanup:
virObjectUnref(conn);
bhyveStateCleanup();
return -1;
}