[libvirt] [PATCH 2/3] libxl: remove needless 'else' in libxlDomainMigrationPrepare

Jim Fehlig posted 3 patches 7 years, 3 months ago
[libvirt] [PATCH 2/3] libxl: remove needless 'else' in libxlDomainMigrationPrepare
Posted by Jim Fehlig 7 years, 3 months ago
Signed-off-by: Jim Fehlig <jfehlig@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 2/3] libxl: remove needless 'else' in libxlDomainMigrationPrepare
Posted by John Ferlan 7 years, 3 months ago

On 03/19/2018 07:28 PM, Jim Fehlig wrote:
> Signed-off-by: Jim Fehlig <jfehlig@suse.com>
> ---
>  src/libxl/libxl_migration.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan@redhat.com>

John

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list