]> git.ipfire.org Git - thirdparty/qemu.git/commit
net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID 1612372)
authorLaurent Vivier <lvivier@redhat.com>
Thu, 17 Jul 2025 15:08:01 +0000 (17:08 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 21 Jul 2025 02:22:41 +0000 (10:22 +0800)
commit37c8b208cc3161c2bcd4e2ff1e1077a64872ced3
tree814052ebb9fa871e4a4da30aa612899fa80bba33
parent2ed74e3c005f236acbf7d85d396a653bfb004a17
net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID 1612372)

The "err" variable was declared but never used within the
net_vhost_user_event() function. This resulted in a dead code
warning (CID 1612372) from Coverity.

Remove the unused variable and the associated error block
to resolve the issue.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/vhost-user.c