Skip to content

Commit

Permalink
migration/ram.c: MultiFDSendParams.sem_sync is not really used
Browse files Browse the repository at this point in the history
Besides init and destroy, MultiFDSendParams.sem_sync is not really used.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
  • Loading branch information
Wei Yang authored and Juan Quintela committed Jun 5, 2019
1 parent 47fbad4 commit 7d4eaac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions migration/ram.c
Expand Up @@ -661,8 +661,6 @@ typedef struct {
uint64_t num_packets;
/* pages sent through this channel */
uint64_t num_pages;
/* syncs main thread and channels */
QemuSemaphore sem_sync;
} MultiFDSendParams;

typedef struct {
Expand Down Expand Up @@ -1027,7 +1025,6 @@ void multifd_save_cleanup(void)
p->c = NULL;
qemu_mutex_destroy(&p->mutex);
qemu_sem_destroy(&p->sem);
qemu_sem_destroy(&p->sem_sync);
g_free(p->name);
p->name = NULL;
multifd_pages_clear(p->pages);
Expand Down Expand Up @@ -1201,7 +1198,6 @@ int multifd_save_setup(void)

qemu_mutex_init(&p->mutex);
qemu_sem_init(&p->sem, 0);
qemu_sem_init(&p->sem_sync, 0);
p->quit = false;
p->pending_job = 0;
p->id = i;
Expand Down

0 comments on commit 7d4eaac

Please sign in to comment.