All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 7/7] migraion: delete death code
@ 2014-02-28  4:12 Gonglei (Arei)
  0 siblings, 0 replies; only message in thread
From: Gonglei (Arei) @ 2014-02-28  4:12 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Juan Quintela, pl, owasserm, aliguori,
	chenliang (T),
	pbonzini

delete death code.

Signed-off-by: ChenLiang <chenliang88@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
 arch_init.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/arch_init.c b/arch_init.c
index cc88875..12fbcea 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -178,13 +178,10 @@ static inline bool is_zero_range(uint8_t *p, uint64_t size)
 static struct {
     /* buffer used for XBZRLE encoding */
     uint8_t *encoded_buf;
-    /* buffer for storing page content */
-    uint8_t *current_buf;
     /* Cache for XBZRLE */
     PageCache *cache;
 } XBZRLE = {
     .encoded_buf = NULL,
-    .current_buf = NULL,
     .cache = NULL,
 };
 /* buffer used for XBZRLE decoding */
@@ -659,10 +656,8 @@ static void migration_end(void)
         cache_fini(XBZRLE.cache);
         g_free(XBZRLE.cache);
         g_free(XBZRLE.encoded_buf);
-        g_free(XBZRLE.current_buf);
         XBZRLE.cache = NULL;
         XBZRLE.encoded_buf = NULL;
-        XBZRLE.current_buf = NULL;
     }
 }
 
@@ -709,14 +704,6 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
             return -1;
         }
 
-        XBZRLE.current_buf = g_try_malloc(TARGET_PAGE_SIZE);
-        if (!XBZRLE.current_buf) {
-            DPRINTF("Error allocating current_buf\n");
-            g_free(XBZRLE.encoded_buf);
-            XBZRLE.encoded_buf = NULL;
-            return -1;
-        }
-
         acct_clear();
     }
 
-- 
1.7.12.4


Best regards,
-Gonglei

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

only message in thread, other threads:[~2014-02-28  4:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-28  4:12 [Qemu-devel] [PATCH 7/7] migraion: delete death code Gonglei (Arei)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.