[libvirt PATCH 01/10] adminConnectListServers: Cleanup

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

 



Remove unnecessary label and goto.

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/admin/admin_server.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/admin/admin_server.c b/src/admin/admin_server.c
index 623c682b2d..6731a366cf 100644
--- a/src/admin/admin_server.c
+++ b/src/admin/admin_server.c
@@ -47,12 +47,12 @@ adminConnectListServers(virNetDaemon *dmn,
     virCheckFlags(0, -1);
 
     if ((ret = virNetDaemonGetServers(dmn, &srvs)) < 0)
-        goto cleanup;
+        return ret;
 
     if (servers) {
         *servers = g_steal_pointer(&srvs);
     }
- cleanup:
+
     if (ret > 0)
         virObjectListFreeCount(srvs, ret);
     return ret;
-- 
2.31.1




[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]

  Powered by Linux