提交 4f28d7f9 编写于 作者: J Jim Fehlig

libxl: remove needless 'else' in libxlDomainMigrationPrepare

Signed-off-by: NJim Fehlig <jfehlig@suse.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 c66e344e
...@@ -733,9 +733,8 @@ libxlDomainMigrationPrepare(virConnectPtr dconn, ...@@ -733,9 +733,8 @@ libxlDomainMigrationPrepare(virConnectPtr dconn,
_("missing host in migration URI: %s"), _("missing host in migration URI: %s"),
uri_in); uri_in);
goto error; goto error;
} else {
hostname = uri->server;
} }
hostname = uri->server;
if (uri->port == 0) { if (uri->port == 0) {
if (virPortAllocatorAcquire(driver->migrationPorts, &port) < 0) if (virPortAllocatorAcquire(driver->migrationPorts, &port) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册