diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index d892cbe50ee90a7fd843df47cead7fa8715eefbe..f6e9ffa9d9a36c21d001b90d4d061044819832a4 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -2412,8 +2412,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) {