migration: Our release callback was just free
authorJuan Quintela <quintela@redhat.com>
Tue, 11 May 2010 21:18:34 +0000 (23:18 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Oct 2011 11:23:53 +0000 (13:23 +0200)
commit4686295a3ee88bb64d56fe6baf5abdc63843d291
tree7cab2c6c7191135cd74ecbec9ab92dddeda0b6d4
parentf143a6f6543fc9699e447d98d5bd63d47187cbc9
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>
migration.c
migration.h