Skip to content

Commit

Permalink
migration/postcopy: PostcopyState is already set in loadvm_postcopy_h…
Browse files Browse the repository at this point in the history
…andle_advise()

PostcopyState is already set to ADVISE at the beginning of
loadvm_postcopy_handle_advise().

Remove the redundant set.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190711080816.6405-1-richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  • Loading branch information
Wei Yang authored and dagrh committed Aug 14, 2019
1 parent e326767 commit 305b6f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions migration/savevm.c
Expand Up @@ -1648,8 +1648,6 @@ static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis,
return -1;
}

postcopy_state_set(POSTCOPY_INCOMING_ADVISE);

return 0;
}

Expand Down

0 comments on commit 305b6f8

Please sign in to comment.