]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: remove needless 'else' in libxlDomainMigrationPrepare
authorJim Fehlig <jfehlig@suse.com>
Mon, 19 Mar 2018 21:07:02 +0000 (15:07 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 21 Mar 2018 18:57:41 +0000 (12:57 -0600)
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/libxl/libxl_migration.c

index 59de0b2785b63f513c5a09f5b1c12f7d377743da..8719d3396c9d0ac2f5f77fdcd9ff7587a2e74b57 100644 (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)