Remove unnecessary label and goto.
Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
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