PostcopyState is already set to ADVISE at the beginning of loadvm_postcopy_handle_advise().
Remove the redundant set. Signed-off-by: Wei Yang <richardw.y...@linux.intel.com> --- migration/savevm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/migration/savevm.c b/migration/savevm.c index 8a2ada529e..2350e219fc 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -1648,8 +1648,6 @@ static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis, return -1; } - postcopy_state_set(POSTCOPY_INCOMING_ADVISE); - return 0; } -- 2.17.1