Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
tests/testutilsqemu.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
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;
}
--
2.31.1