migration: Clean up local variable shadowing
commit7f3de3f02f0bd0eaa3ba4506f9a60c1c35865e93
authorMarkus Armbruster <armbru@redhat.com>
Thu, 21 Sep 2023 12:13:07 +0000 (21 14:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 06:13:57 +0000 (29 08:13 +0200)
tree86a00b7085adafe28acc08f9de52de96c93711c5
parentbbde656263d80429b51017b077d9b4064ba13b01
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>
migration/block.c
migration/ram.c
migration/rdma.c
migration/vmstate.c