]> xenbits.xensource.com Git - xen.git/commitdiff
xl: remove duplicate code in migrate_domain()
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 1 Jun 2010 06:06:50 +0000 (07:06 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 1 Jun 2010 06:06:50 +0000 (07:06 +0100)
libxl_domid_to_name() have already been called in
save_domain_core_begin()->find_domain(), so remove it.

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/xl_cmdimpl.c

index 669e7250701d4a76b305026503c1159e09bd9e32..476ec78eeddd22cd397976caafa4d39388fa8ebd 100644 (file)
@@ -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");