On Thu, 17 Jul 2025 at 18:50, Laurent Vivier <lviv...@redhat.com> wrote: > > In passt_vhost_user_start(), if vhost_net_init() fails, the "net" > variable is NULL and execution jumps to the "err:" label. > > The cleanup code within this label is conditioned on "if (net)", > which can never be true in this error case. This makes the cleanup > block dead code, as reported by Coverity (CID 1612371). > > Refactor the error handling to occur inline, removing the goto and > the unreachable cleanup block. >
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM