提交 f999f77d 编写于 作者: M Maxim Nestratov

bhyve: cleanup unnecessary variables

上级 7d3b10a9
...@@ -1187,8 +1187,6 @@ bhyveStateInitialize(bool privileged, ...@@ -1187,8 +1187,6 @@ bhyveStateInitialize(bool privileged,
virStateInhibitCallback callback ATTRIBUTE_UNUSED, virStateInhibitCallback callback ATTRIBUTE_UNUSED,
void *opaque ATTRIBUTE_UNUSED) void *opaque ATTRIBUTE_UNUSED)
{ {
virConnectPtr conn = NULL;
if (!privileged) { if (!privileged) {
VIR_INFO("Not running privileged, disabling driver"); VIR_INFO("Not running privileged, disabling driver");
return 0; return 0;
...@@ -1259,12 +1257,9 @@ bhyveStateInitialize(bool privileged, ...@@ -1259,12 +1257,9 @@ bhyveStateInitialize(bool privileged,
virBhyveProcessReconnectAll(bhyve_driver); virBhyveProcessReconnectAll(bhyve_driver);
virObjectUnref(conn);
return 0; return 0;
cleanup: cleanup:
virObjectUnref(conn);
bhyveStateCleanup(); bhyveStateCleanup();
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册