mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
lib: Drop needless one line labels
In some cases we have a label that contains nothing but a return statement. The amount of such labels rises as we use automagic cleanup. Anyway, such labels are pointless and can be dropped. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ main(int argc, char *argv[])
|
||||
|
||||
if (argc < 4) {
|
||||
usage(argv[0]);
|
||||
goto out;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
src_uri = argv[1];
|
||||
@@ -54,7 +54,7 @@ main(int argc, char *argv[])
|
||||
if (!conn) {
|
||||
fprintf(stderr, "No connection to the source hypervisor: %s.\n",
|
||||
virGetLastErrorMessage());
|
||||
goto out;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
printf("Attempting to retrieve domain %s...\n", domname);
|
||||
@@ -79,7 +79,5 @@ main(int argc, char *argv[])
|
||||
if (dom != NULL)
|
||||
virDomainFree(dom);
|
||||
virConnectClose(conn);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user