aboutsummaryrefslogtreecommitdiff
path: root/migration.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-05-11 23:18:34 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:53 +0200
commit92920cd782d3b36bea64d79f162567c873882c4e (patch)
tree7cab2c6c7191135cd74ecbec9ab92dddeda0b6d4 /migration.h
parent458cf28e6b01ff9b87a20d199d42b1c1c904cd29 (diff)
migration: Our release callback was just free
We called it from a single place, and always with state != MIG_STATE_ACTIVE. Just remove the whole callback. For users of the notifier, notice that this is exactly the case where they don't care, we are just freeing the state from previous failed migration (it can't be a sucessful one, otherwise we would not be running on that machine in the first place). Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.h')
-rw-r--r--migration.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/migration.h b/migration.h
index fed1cf1333..347f3217f1 100644
--- a/migration.h
+++ b/migration.h
@@ -40,7 +40,6 @@ struct MigrationState
int (*write)(MigrationState *s, const void *buff, size_t size);
void (*cancel)(MigrationState *s);
int (*get_status)(MigrationState *s);
- void (*release)(MigrationState *s);
void *opaque;
int blk;
int shared;