diff mbox

[PULL,06/13] migration: remove useless code

Message ID e7bb92e21a47c97dc477dc0dd49acf8ee0e633ad.1466168448.git.amit.shah@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Amit Shah June 17, 2016, 1:06 p.m. UTC
From: Liang Li <liang.z.li@intel.com>

page_buffer is set twice repeatedly, remove the previous set.

Signed-off-by: Liang Li <liang.z.li@intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <1462433579-13691-4-git-send-email-liang.z.li@intel.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 migration/ram.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/migration/ram.c b/migration/ram.c
index 5ccc068..6416e60 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -2359,7 +2359,6 @@  static int ram_load_postcopy(QEMUFile *f)
                 ret = -EINVAL;
                 break;
             }
-            page_buffer = host;
             /*
              * Postcopy requires that we place whole host pages atomically.
              * To make it atomic, the data is read into a temporary page