From: Tim Wiederhake Date: Mon, 5 Jul 2021 14:22:49 +0000 (+0200) Subject: testQemuGetLatestCaps: Remove superfluous `goto`s X-Git-Tag: v7.6.0-rc1~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ad2882cb6ca6697e1970001bd843a78e87f1dad;p=thirdparty%2Flibvirt.git testQemuGetLatestCaps: Remove superfluous `goto`s Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index 72b53096d9..fab676c070 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -594,7 +594,7 @@ testQemuGetLatestCaps(void) char *cap = testQemuGetLatestCapsForArch(archs[i], "xml"); if (!cap || virHashAddEntry(capslatest, archs[i], cap) < 0) - goto error; + return NULL; VIR_TEST_VERBOSE("latest caps for %s: %s", archs[i], cap); } @@ -602,9 +602,6 @@ testQemuGetLatestCaps(void) VIR_TEST_VERBOSE(""); return g_steal_pointer(&capslatest); - - error: - return NULL; }