summaryrefslogtreecommitdiff
path: root/tests/vboxsnapshotxmltest.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2021-12-10 16:21:59 +0100
committerJán Tomko <jtomko@redhat.com>2021-12-13 14:44:01 +0100
commit7d825985b46f43429527b4878add19f2e1365d60 (patch)
treee564cc50ffec706b81788e64301994a961e7db29 /tests/vboxsnapshotxmltest.c
parent8a82117ee2d247d68f670a487fc35d04d94a0eb1 (diff)
downloadlibvirt-7d825985b46f43429527b4878add19f2e1365d60.tar.gz
Remove empty cleanup sections
After recent cleanups, there are some pointless cleanup sections. Clean them up. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/vboxsnapshotxmltest.c')
-rw-r--r--tests/vboxsnapshotxmltest.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/vboxsnapshotxmltest.c b/tests/vboxsnapshotxmltest.c
index d69eb3fc24..3ad8298895 100644
--- a/tests/vboxsnapshotxmltest.c
+++ b/tests/vboxsnapshotxmltest.c
@@ -21,11 +21,10 @@ testFilterXML(char *xml)
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
g_auto(GStrv) xmlLines = NULL;
char **xmlLine;
- char *ret = NULL;
if (!(xmlLines = g_strsplit(xml, "\n", 0))) {
VIR_FREE(xml);
- goto cleanup;
+ return NULL;
}
VIR_FREE(xml);
@@ -36,10 +35,7 @@ testFilterXML(char *xml)
virBufferStrcat(&buf, *xmlLine, "\n", NULL);
}
- ret = virBufferContentAndReset(&buf);
-
- cleanup:
- return ret;
+ return virBufferContentAndReset(&buf);
}
static int