[PATCH 22/30] util: remove cleanup labels
Ján Tomko
jtomko at redhat.com
Tue Nov 24 12:33:10 UTC 2020
On a Monday in 2020, Ryan Gahagan wrote:
>From: Barrett Schonefeld <bschoney at utexas.edu>
>
>- src/util/viruri.c
>
>Signed-off-by: Barrett Schonefeld <bschoney at utexas.edu>
>---
> src/util/viruri.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
>diff --git a/src/util/viruri.c b/src/util/viruri.c
>index 704e5b2132..d49821451e 100644
>--- a/src/util/viruri.c
>+++ b/src/util/viruri.c
>@@ -241,10 +241,9 @@ virURIFormat(virURIPtr uri)
> ret = (char *)xmlSaveUri(&xmluri);
> if (!ret) {
> virReportOOMError();
>- goto cleanup;
>+ return ret;
return NULL;
> }
>
>- cleanup:
> return ret;
> }
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201124/2566728f/attachment-0001.sig>
More information about the libvir-list
mailing list