[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] backends/cryptodev: fix coverity issue
From: |
Jay Zhou |
Subject: |
[Qemu-devel] [PATCH] backends/cryptodev: fix coverity issue |
Date: |
Sat, 28 Apr 2018 13:54:24 +0800 |
This patch removes the dead code, which fixes Coverity (CID 1390600) issue.
Signed-off-by: Jay Zhou <address@hidden>
---
backends/cryptodev-vhost-user.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-user.c
index 862d4f2..67e65c6 100644
--- a/backends/cryptodev-vhost-user.c
+++ b/backends/cryptodev-vhost-user.c
@@ -155,7 +155,6 @@ static void cryptodev_vhost_user_event(void *opaque, int
event)
{
CryptoDevBackendVhostUser *s = opaque;
CryptoDevBackend *b = CRYPTODEV_BACKEND(s);
- Error *err = NULL;
int queues = b->conf.peers.queues;
assert(queues < MAX_CRYPTO_QUEUE_NUM);
@@ -172,10 +171,6 @@ static void cryptodev_vhost_user_event(void *opaque, int
event)
cryptodev_vhost_user_stop(queues, s);
break;
}
-
- if (err) {
- error_report_err(err);
- }
}
static void cryptodev_vhost_user_init(
--
1.8.3.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] backends/cryptodev: fix coverity issue,
Jay Zhou <=