diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 69d53981a59ce5e0ec9975d24147e541b10725ef..b44c8d9b048645d45e9482a2d17562bfab1c6e89 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -2596,8 +2596,6 @@ qemuMigrationPrepareDirect(virQEMUDriverPtr driver, virReportError(VIR_ERR_INVALID_ARG, _("missing host in migration" " URI: %s"), uri_in); goto cleanup; - } else { - hostname = uri->server; } if (uri->port == 0) {