mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user