From aaa2064c2ae25ef833b3324aedeba9a6363bd5ec Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 21 Mar 2017 11:35:24 +0100 Subject: ram: ram_discard_range() don't use the mis parameter Signed-off-by: Juan Quintela Reviewed-by: Peter Xu --- migration/savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'migration/savevm.c') 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; } -- cgit v1.2.3