]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpc: Remove unnecessary calls
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Jan 2013 14:29:05 +0000 (09:29 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 13:34:11 +0000 (14:34 +0100)
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.

src/rpc/virnetserverclient.c

index 85239dddf0bf10216f98b35c1ff8de6698d69a02..af0560ed2dd84d0b8e3676073b6000da5f6d8926 100644 (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;
 }