migration: simplify state assignmente
authorJuan Quintela <quintela@redhat.com>
Tue, 13 Sep 2011 13:11:38 +0000 (15:11 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Oct 2011 11:23:51 +0000 (13:23 +0200)
commitc0b2ba46c5ceb806a1639bb86b0b457309674b23
treed88ae0dcdad2cd4423ea771ca3f567e7e7073481
parent3a230256e8418f5cc9761f36feb6952d7ca38d73
migration: simplify state assignmente

Once there, make sure that if we already know that there is one error,
just call migration_fd_cleanup() with the ERROR state.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
migration.c