aboutsummaryrefslogtreecommitdiff
path: root/migration/fd.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-17 17:15:02 +0200
committerJuan Quintela <quintela@redhat.com>2017-06-13 11:00:44 +0200
commit543147116e40edcc6ccfc51e7b05a8a8934b48b5 (patch)
treeb35e627381e294d58741f1f28fcbfca19de7dbb0 /migration/fd.c
parentc8f9f4f402dabeec88d2f5e21e54a88021b2eeee (diff)
migration: Remove MigrationState from migration_channel_incomming()
All callers were calling migrate_get_current(), so do it inside the function. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'migration/fd.c')
-rw-r--r--migration/fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/fd.c b/migration/fd.c
index 0077a505a3..8a04dcd38c 100644
--- a/migration/fd.c
+++ b/migration/fd.c
@@ -49,7 +49,7 @@ static gboolean fd_accept_incoming_migration(QIOChannel *ioc,
GIOCondition condition,
gpointer opaque)
{
- migration_channel_process_incoming(migrate_get_current(), ioc);
+ migration_channel_process_incoming(ioc);
object_unref(OBJECT(ioc));
return FALSE; /* unregister */
}