]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration/postcopy: PostcopyState is already set in loadvm_postcopy_handle_advise()
authorWei Yang <richardw.yang@linux.intel.com>
Thu, 11 Jul 2019 08:08:16 +0000 (16:08 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 14 Aug 2019 16:33:14 +0000 (17:33 +0100)
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>
migration/savevm.c

index 69a827a92fdb6b78319c238ee64031146f7b30aa..eed5e551da863c2486b9d14d707612e5b28a3317 100644 (file)
@@ -1648,8 +1648,6 @@ static int loadvm_postcopy_handle_advise(MigrationIncomingState *mis,
         return -1;
     }
 
-    postcopy_state_set(POSTCOPY_INCOMING_ADVISE);
-
     return 0;
 }