Re: [PATCH 03/10] rpc: Remove call to virKeepAliveStop at init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/17/13 20:17, John Ferlan wrote:
This code is not reachable as of commit id: bb85f229.
---
  src/rpc/virnetserverclient.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/src/rpc/virnetserverclient.c b/src/rpc/virnetserverclient.c
index 85239dd..e254309 100644
--- a/src/rpc/virnetserverclient.c
+++ b/src/rpc/virnetserverclient.c
@@ -1360,8 +1360,6 @@ virNetServerClientInitKeepAlive(virNetServerClientPtr client,

  cleanup:
      virObjectUnlock(client);
-    if (ka)
-        virKeepAliveStop(ka);
      virObjectUnref(ka);

This unref also doesn't make sense. The cleanup path is reached only when ka is NULL. This allows to optimize the function even more.


      return ret;


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]