From: Jim Fehlig Date: Mon, 19 Mar 2018 21:07:02 +0000 (-0600) Subject: libxl: remove needless 'else' in libxlDomainMigrationPrepare X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4f28d7f98c29f7f860423972e4229f55cc713e3a;p=libvirt.git libxl: remove needless 'else' in libxlDomainMigrationPrepare Signed-off-by: Jim Fehlig Reviewed-by: John Ferlan --- diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index 59de0b2785..8719d3396c 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -733,9 +733,8 @@ libxlDomainMigrationPrepare(virConnectPtr dconn, _("missing host in migration URI: %s"), uri_in); goto error; - } else { - hostname = uri->server; } + hostname = uri->server; if (uri->port == 0) { if (virPortAllocatorAcquire(driver->migrationPorts, &port) < 0)