mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
parent
7479026b5c
commit
8d3aa09283
@ -1356,13 +1356,9 @@ virNetServerClientInitKeepAlive(virNetServerClientPtr client,
|
||||
virObjectRef(client);
|
||||
|
||||
client->keepalive = ka;
|
||||
ka = NULL;
|
||||
|
||||
cleanup:
|
||||
virObjectUnlock(client);
|
||||
if (ka)
|
||||
virKeepAliveStop(ka);
|
||||
virObjectUnref(ka);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user