tests: qemu: remove unnecessary labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ján Tomko
2020-07-28 23:17:02 +02:00
parent 51be622d76
commit d43f393134
7 changed files with 43 additions and 75 deletions

View File

@@ -141,7 +141,6 @@ testQemuCaps(const void *opaque)
static int
testQemuCapsCopy(const void *opaque)
{
int ret = -1;
const testQemuData *data = opaque;
g_autofree char *capsFile = NULL;
g_autoptr(virQEMUCaps) orig = NULL;
@@ -154,21 +153,18 @@ testQemuCapsCopy(const void *opaque)
if (!(orig = qemuTestParseCapabilitiesArch(
virArchFromString(data->archName), capsFile)))
goto cleanup;
return -1;
if (!(copy = virQEMUCapsNewCopy(orig)))
goto cleanup;
return -1;
if (!(actual = virQEMUCapsFormatCache(copy)))
goto cleanup;
return -1;
if (virTestCompareToFile(actual, capsFile) < 0)
goto cleanup;
return -1;
ret = 0;
cleanup:
return ret;
return 0;
}