mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00: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…
x
Reference in New Issue
Block a user