xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]xl: remove duplicate code in migrate_domain()
@ 2010-05-31  8:56 Yang Hongyang
  0 siblings, 0 replies; only message in thread
From: Yang Hongyang @ 2010-05-31  8:56 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

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> 

diff -r 96917cf25bf3 tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c	Fri May 28 10:54:07 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c	Tue Jun 01 00:57:11 2010 +0800
@@ -1875,11 +1875,6 @@
     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");

-- 
Regards
Yang Hongyang

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-31  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31  8:56 [PATCH]xl: remove duplicate code in migrate_domain() Yang Hongyang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).