Skip to contentSkip to conversation

migration: remove useless code

PATCH In review Liang Li 2 participants 2 messages Apr 18, 2016

lore
Share & tools
lore

Liang Li

author
#0 lore raw

PATCH 1/1 migration: remove useless code

page_buffer is set twice repeatedly, remove the previous set.

---
 migration/ram.c | 1 -
 1 file changed, 1 deletion(-)
migration/ram.c +0 -1
index 3f05738..31d40f4 100644
@@ -2322,7 +2322,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
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · * Liang Li ([email protected]) wrote:

page_buffer is set twice repeatedly, remove the previous set.

---
 migration/ram.c | 1 -
 1 file changed, 1 deletion(-)
migration/ram.c +0 -0
index 3f05738..31d40f4 100644

migration/ram.c static int ram_load_postcopy(QEMUFile *f) · line 2327

Quoted 7 lines
migration/ram.c +0 -1
@@ -2322,7 +2322,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
Quoted 3 lines
Signature · 1 line
1.9.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK