block: Clean up local variable shadowing
commitfb2575f95411644abe7f0606594035b63a5132ad
authorMarkus Armbruster <armbru@redhat.com>
Thu, 21 Sep 2023 12:13:11 +0000 (21 14:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 06:13:57 +0000 (29 08:13 +0200)
treee9e0fe4dc77d0d3575436232a7ce4d8d35a20c82
parentd25b99c72b0178ce0e0c766b07011102dbbacf6a
block: 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: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230921121312.1301864-7-armbru@redhat.com>
block.c
block/rbd.c
block/stream.c
block/vvfat.c
hw/block/xen-block.c