aboutsummaryrefslogtreecommitdiff
path: root/migration/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-03-21 11:35:24 +0100
committerJuan Quintela <quintela@redhat.com>2017-04-21 12:25:39 +0200
commitaaa2064c2ae25ef833b3324aedeba9a6363bd5ec (patch)
tree55ab769cf5fb821dcc69664c46a3414429dd6eb1 /migration/savevm.c
parent15440dd5a08a6b10538b9e62c6d95ac8a838d78a (diff)
ram: ram_discard_range() don't use the mis parameter
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/savevm.c')
-rw-r--r--migration/savevm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index bbf055db75..7cf387fd04 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -1479,8 +1479,7 @@ static int loadvm_postcopy_ram_handle_discard(MigrationIncomingState *mis,
block_length = qemu_get_be64(mis->from_src_file);
len -= 16;
- int ret = ram_discard_range(mis, ramid, start_addr,
- block_length);
+ int ret = ram_discard_range(ramid, start_addr, block_length);
if (ret) {
return ret;
}