tests: remove superfluous cleanup: labels and ret return variables

After converting virNetworkDef * to g_autoptr(virNetworkDef) the
cleanup codepath was empty, so it has been removed.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Laine Stump
2022-08-18 13:29:07 -04:00
parent 9a64c66d34
commit 15bd9179be
2 changed files with 6 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ testCompareXMLToXMLFiles(const char *netxml, const char *updatexml,
g_autoptr(virNetworkDef) def = NULL;
if (virTestLoadFile(updatexml, &updateXmlData) < 0)
goto error;
return -1;
if (!(def = virNetworkDefParseFile(netxml, NULL)))
goto fail;
@@ -37,7 +37,7 @@ testCompareXMLToXMLFiles(const char *netxml, const char *updatexml,
if (!expectFailure) {
if (virTestCompareToFile(actual, outxml) < 0)
goto error;
return -1;
}
ret = 0;
@@ -52,7 +52,6 @@ testCompareXMLToXMLFiles(const char *netxml, const char *updatexml,
ret = 0;
}
}
error:
return ret;
}