1
0
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:
John Ferlan 2013-01-18 09:29:05 -05:00 committed by Peter Krempa
parent 7479026b5c
commit 8d3aa09283

View File

@ -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;
}