This patch series addresses several static analysis warnings reported by
Coverity (CIDs 1612365, 1612368, 1612369, 1612371, 1612372, 1612375)
in the vhost-user and passt networking code.

The changes are mostly minor cleanups and fixes:

Three patches remove an unused "err" variable and its associated
unreachable error handling block.

One patch removes another piece of dead code in an error path by
refactoring away a goto.

The remaining two patches initialize a pointer to prevent a potential
illegal memory access and add a check for the return value of
g_remove() to log potential errors.

Laurent Vivier (6):
  net/passt: Remove unused "err" from passt_vhost_user_event() (CID
    1612375)
  net/vhost-user: Remove unused "err" from net_vhost_user_event() (CID
    1612372)
  net/passt: Remove dead code in passt_vhost_user_start error path (CID
    1612371)
  net/passt: Check return value of g_remove() in net_passt_cleanup()
    (CID 1612369)
  net/passt: Initialize "error" variable in net_passt_send() (CID
    1612368)
  net/vhost-user: Remove unused "err" from chr_closed_bh() (CID 1612365)

 net/passt.c      | 22 +++++++---------------
 net/vhost-user.c |  9 ---------
 2 files changed, 7 insertions(+), 24 deletions(-)

-- 
2.49.0



Reply via email to