From: Keir Fraser Date: Tue, 1 Jun 2010 06:06:50 +0000 (+0100) Subject: xl: remove duplicate code in migrate_domain() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12045 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f60b34911f026b39d75a547903fd25348d80546;p=xen.git xl: remove duplicate code in migrate_domain() libxl_domid_to_name() have already been called in save_domain_core_begin()->find_domain(), so remove it. Signed-off-by: Yang Hongyang --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 669e725070..476ec78eed 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1875,11 +1875,6 @@ static void migrate_domain(char *domain_spec, const char *rune, save_domain_core_begin(domain_spec, override_config_file, &config_data, &config_len); - if (!common_domname) { - common_domname = libxl_domid_to_name(&ctx, domid); - /* libxl_domid_to_name fails ? don't bother with names then */ - } - if (!config_len) { fprintf(stderr, "No config file stored for running domain and " "none supplied - cannot migrate.\n");