qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 16/23] migration: another case of global variable as


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 16/23] migration: another case of global variable assigned to local one
Date: Fri, 23 Sep 2011 14:57:05 +0200

Signed-off-by: Juan Quintela <address@hidden>
---
 migration.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/migration.c b/migration.c
index d5e0eb0..1cc21f0 100644
--- a/migration.c
+++ b/migration.c
@@ -137,9 +137,8 @@ void do_info_migrate(Monitor *mon, QObject **ret_data)
     QDict *qdict;

     if (current_migration) {
-        MigrationState *s = current_migration;

-        switch (s->state) {
+        switch (current_migration->state) {
         case MIG_STATE_NONE:
             /* no migration has happened ever */
             break;
-- 
1.7.6.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]