libxl: remove needless 'else' in libxlDomainMigrationPrepare

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Jim Fehlig 2018-03-19 15:07:02 -06:00
parent c66e344e38
commit 4f28d7f98c

View File

@ -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)