From 674b961d77e545088e1fc195dd6702e8526a2ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 19 Nov 2020 11:06:56 +0100 Subject: [PATCH] openvzDomainMigratePrepare3Params: remove else after goto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/openvz/openvz_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);