1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

testQemuGetLatestCaps: Remove superfluous gotos

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-05 16:22:49 +02:00
parent 0b710cdaab
commit 8ad2882cb6

View File

@ -594,7 +594,7 @@ testQemuGetLatestCaps(void)
char *cap = testQemuGetLatestCapsForArch(archs[i], "xml"); char *cap = testQemuGetLatestCapsForArch(archs[i], "xml");
if (!cap || virHashAddEntry(capslatest, archs[i], cap) < 0) if (!cap || virHashAddEntry(capslatest, archs[i], cap) < 0)
goto error; return NULL;
VIR_TEST_VERBOSE("latest caps for %s: %s", archs[i], cap); VIR_TEST_VERBOSE("latest caps for %s: %s", archs[i], cap);
} }
@ -602,9 +602,6 @@ testQemuGetLatestCaps(void)
VIR_TEST_VERBOSE(""); VIR_TEST_VERBOSE("");
return g_steal_pointer(&capslatest); return g_steal_pointer(&capslatest);
error:
return NULL;
} }