mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
migration: Clean up local variable shadowing
Local variables shadowing other local variables or parameters make the code needlessly hard to understand. Tracked down with -Wshadow=local. Clean up: delete inner declarations when they are actually redundant, else rename variables. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Li Zhijian <lizhijian@fujitsu.com> Message-ID: <20230921121312.1301864-3-armbru@redhat.com>
This commit is contained in:
parent
bbde656263
commit
7f3de3f02f
4 changed files with 11 additions and 11 deletions
|
@ -1902,9 +1902,11 @@ static int qemu_rdma_exchange_send(RDMAContext *rdma, RDMAControlHeader *head,
|
|||
* by waiting for a READY message.
|
||||
*/
|
||||
if (rdma->control_ready_expected) {
|
||||
RDMAControlHeader resp;
|
||||
ret = qemu_rdma_exchange_get_response(rdma,
|
||||
&resp, RDMA_CONTROL_READY, RDMA_WRID_READY);
|
||||
RDMAControlHeader resp_ignored;
|
||||
|
||||
ret = qemu_rdma_exchange_get_response(rdma, &resp_ignored,
|
||||
RDMA_CONTROL_READY,
|
||||
RDMA_WRID_READY);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue