mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
bhyve: cleanup unnecessary variables
This commit is contained in:
parent
7d3b10a9fb
commit
f999f77d7d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user