From: Ján Tomko Date: Thu, 19 Nov 2020 10:06:56 +0000 (+0100) Subject: openvzDomainMigratePrepare3Params: remove else after goto X-Git-Tag: v6.10.0-rc1~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=674b961d77e545088e1fc195dd6702e8526a2ca5;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Erik Skultety --- diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 4fa7511f88..c6b7e21e7a 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -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);