hw/virtio/vhost: Silence compiler warnings in vhost code when using -Wshadow
commitda3182887cd3d3d02c3406549818cf222a9f0ca1
authorThomas Huth <thuth@redhat.com>
Wed, 4 Oct 2023 11:48:09 +0000 (4 13:48 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 6 Oct 2023 10:47:57 +0000 (6 12:47 +0200)
treec70da490d4562d7d857633148ca39482f838226b
parent5ae80e6297080b3592b4658d92acfdba5255fc8b
hw/virtio/vhost: Silence compiler warnings in vhost code when using -Wshadow

Rename a variable in vhost_dev_sync_region() and remove a superfluous
declaration in vhost_commit() to make this code compilable with "-Wshadow".

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231004114809.105672-1-thuth@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-By: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/virtio/vhost.c