提交 8d3aa092 编写于 作者: J John Ferlan 提交者: Peter Krempa

rpc: Remove unnecessary calls

The code is not reachable as of commit id: bb85f229. Removed
virKeepAliveStop() and virObjectUnref() because 'ka' cannot be
anything but NULL at the cleanup label.
上级 7479026b
...@@ -1356,13 +1356,9 @@ virNetServerClientInitKeepAlive(virNetServerClientPtr client, ...@@ -1356,13 +1356,9 @@ virNetServerClientInitKeepAlive(virNetServerClientPtr client,
virObjectRef(client); virObjectRef(client);
client->keepalive = ka; client->keepalive = ka;
ka = NULL;
cleanup: cleanup:
virObjectUnlock(client); virObjectUnlock(client);
if (ka)
virKeepAliveStop(ka);
virObjectUnref(ka);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册