static void migrate_fd_cancel(MigrationState *s)

{

    if (s->state != MIG_STATE_ACTIVE)

        return;



    DPRINTF("cancelling migration\n");



    s->state = MIG_STATE_CANCELLED;

    notifier_list_notify(&migration_state_notifiers, s);



    migrate_fd_cleanup(s);

}

static void migrate_fd_cancel(MigrationState *s)

{

    if (s->state != MIG_STATE_ACTIVE)

        return;



    DPRINTF("cancelling migration\n");



    s->state = MIG_STATE_CANCELLED;

    notifier_list_notify(&migration_state_notifiers, s);



    migrate_fd_cleanup(s);

}

static void FUNC_0(MigrationState *VAR_0)

{

    if (VAR_0->state != MIG_STATE_ACTIVE)

        return;



    DPRINTF("cancelling migration\n");



    VAR_0->state = MIG_STATE_CANCELLED;

    notifier_list_notify(&migration_state_notifiers, VAR_0);



    migrate_fd_cleanup(VAR_0);

}

static void FUNC_0(MigrationState *VAR_0)
{ if (VAR_0->state != MIG_STATE_ACTIVE)
return; DPRINTF("cancelling migration\n"); VAR_0->state = MIG_STATE_CANCELLED; notifier_list_notify(&migration_state_notifiers, VAR_0); migrate_fd_cleanup(VAR_0); }