mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
testQemuGetLatestCaps: Remove superfluous goto
s
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
0b710cdaab
commit
8ad2882cb6
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user