Patchwork [17/28] migration: another case of global variable assigned to local one

login
register
mail settings
Submitter Juan Quintela
Date Feb. 23, 2011, 9:47 p.m.
Message ID <752c68fe5d8e4e4fe9dec06971510471f30f69f8.1298492768.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/84282/
State New
Headers show

Comments

Juan Quintela - Feb. 23, 2011, 9:47 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/migration.c b/migration.c
index 21f5a9a..593adee 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;