mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
migration/multifd: Change retval of multifd_queue_page()
Using int is an overkill when there're only two options. Change it to a boolean. Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/r/20240202102857.110210-17-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
@ -1252,7 +1252,7 @@ static int ram_save_page(RAMState *rs, PageSearchStatus *pss)
|
||||
|
||||
static int ram_save_multifd_page(RAMBlock *block, ram_addr_t offset)
|
||||
{
|
||||
if (multifd_queue_page(block, offset) < 0) {
|
||||
if (!multifd_queue_page(block, offset)) {
|
||||
return -1;
|
||||
}
|
||||
stat64_add(&mig_stats.normal_pages, 1);
|
||||
|
Reference in New Issue
Block a user