]> git.proxmox.com Git - mirror_qemu.git/commit
block/vdi: Clean up local variable shadowing
authorMarkus Armbruster <armbru@redhat.com>
Thu, 21 Sep 2023 12:13:10 +0000 (14:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 06:13:57 +0000 (08:13 +0200)
commitd25b99c72b0178ce0e0c766b07011102dbbacf6a
treefec9032aa10bcc19a44b8a472903a783283edd7b
parent6a0f7ff7dd2034fb167557f0444e1f1851dbd654
block/vdi: 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>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230921121312.1301864-6-armbru@redhat.com>
block/vdi.c