Signed-off-by: Jim Fehlig <jfehlig(a)suse.com>
---
src/libxl/libxl_migration.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c
index c1c23dab3..f0001f9f7 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)
--
2.16.2