libvduse: Fix compiler warning with -Wshadow=local
commit3cc72cdbb2235b1001bab760712ef6bf543752c3
authorThomas Huth <thuth@redhat.com>
Fri, 6 Oct 2023 12:08:19 +0000 (6 14:08 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 12 Oct 2023 12:09:58 +0000 (12 14:09 +0200)
tree34f0a28b0c1172a91695766c6cfb208c0d6cfc9e
parenta51e5124a655b3dad80b36b18547cb1eca2c5eb2
libvduse: Fix compiler warning with -Wshadow=local

No need to declare a new variable with the same name here,
we can simple re-use the one from the top of the function.
With this change, the file now compiles fine with -Wshadow=local.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231006120819.480792-1-thuth@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
subprojects/libvduse/libvduse.c