migration/rdma: Clean up rdma_delete_block()'s return type
rdma_delete_block() always returns 0, which its only caller ignores. Return void instead. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20230928132019.2544702-4-armbru@redhat.com>
This commit is contained in:
parent
c07d19622c
commit
1720a2a875
@ -668,7 +668,7 @@ static int qemu_rdma_init_ram_blocks(RDMAContext *rdma)
|
|||||||
* Note: If used outside of cleanup, the caller must ensure that the destination
|
* Note: If used outside of cleanup, the caller must ensure that the destination
|
||||||
* block structures are also updated
|
* block structures are also updated
|
||||||
*/
|
*/
|
||||||
static int rdma_delete_block(RDMAContext *rdma, RDMALocalBlock *block)
|
static void rdma_delete_block(RDMAContext *rdma, RDMALocalBlock *block)
|
||||||
{
|
{
|
||||||
RDMALocalBlocks *local = &rdma->local_ram_blocks;
|
RDMALocalBlocks *local = &rdma->local_ram_blocks;
|
||||||
RDMALocalBlock *old = local->block;
|
RDMALocalBlock *old = local->block;
|
||||||
@ -754,8 +754,6 @@ static int rdma_delete_block(RDMAContext *rdma, RDMALocalBlock *block)
|
|||||||
&local->block[x]);
|
&local->block[x]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user