mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-12 04:58:32 +03:00
openvzDomainMigratePrepare3Params: remove else after goto
We jump to the error label if the 'if' condition is true. Remove the explicit else to make it more obvious that 'hostname' is filled on both branches of 'if (!uri_in)'. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
f070334425
commit
674b961d77
@ -2130,9 +2130,9 @@ openvzDomainMigratePrepare3Params(virConnectPtr dconn,
|
||||
_("missing host in migration URI: %s"),
|
||||
uri_in);
|
||||
goto error;
|
||||
} else {
|
||||
hostname = uri->server;
|
||||
}
|
||||
|
||||
hostname = uri->server;
|
||||
}
|
||||
|
||||
*uri_out = g_strdup_printf("ssh://%s", hostname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user