mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-12 04:58:32 +03:00
virSaveCookieParse: Cleanup
Remove unnecessary label and goto. Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bea22ecfe2
commit
6ba7e1b330
@ -58,19 +58,14 @@ virSaveCookieParse(xmlXPathContextPtr ctxt,
|
|||||||
virSaveCookieCallbacks *saveCookie)
|
virSaveCookieCallbacks *saveCookie)
|
||||||
{
|
{
|
||||||
VIR_XPATH_NODE_AUTORESTORE(ctxt)
|
VIR_XPATH_NODE_AUTORESTORE(ctxt)
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
*obj = NULL;
|
*obj = NULL;
|
||||||
|
|
||||||
if (!(ctxt->node = virXPathNode("./cookie", ctxt))) {
|
if (!(ctxt->node = virXPathNode("./cookie", ctxt))) {
|
||||||
ret = 0;
|
return 0;
|
||||||
goto cleanup;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = virSaveCookieParseNode(ctxt, obj, saveCookie);
|
return virSaveCookieParseNode(ctxt, obj, saveCookie);
|
||||||
|
|
||||||
cleanup:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user