diff mbox

[16/23] migration: another case of global variable assigned to local one

Message ID fe81381ed0e78bbe83d8bde741f1ee6f95adbbff.1316526970.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Sept. 20, 2011, 2:19 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/migration.c b/migration.c
index 1ab26fb..f405d3c 100644
--- a/migration.c
+++ b/migration.c
@@ -136,9 +136,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;