net/passt: Remove unused "err" from passt_vhost_user_event() (CID 1612375)
The "err" variable was declared but never used within the passt_vhost_user_event() function. This resulted in a dead code warning (CID 1612375) 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>
This commit is contained in:
parent
a6d6e37901
commit
2ed74e3c00
1 changed files with 0 additions and 5 deletions
|
|
@ -397,7 +397,6 @@ err:
|
|||
static void passt_vhost_user_event(void *opaque, QEMUChrEvent event)
|
||||
{
|
||||
NetPasstState *s = opaque;
|
||||
Error *err = NULL;
|
||||
|
||||
switch (event) {
|
||||
case CHR_EVENT_OPENED:
|
||||
|
|
@ -428,10 +427,6 @@ static void passt_vhost_user_event(void *opaque, QEMUChrEvent event)
|
|||
/* Ignore */
|
||||
break;
|
||||
}
|
||||
|
||||
if (err) {
|
||||
error_report_err(err);
|
||||
}
|
||||
}
|
||||
|
||||
static int net_passt_vhost_user_init(NetPasstState *s, Error **errp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue