Skip to contentSkip to conversation

backends/cryptodev: fix coverity issue

PATCH In review Jay Zhou 2 participants 2 messages Apr 28, 2018 – May 8, 2018

lore
Share & tools
lore

Jay Zhou

author
#0 lore raw

PATCH 1/1 backends/cryptodev: fix coverity issue

This patch removes the dead code, which fixes Coverity (CID 1390600) issue.

---
 backends/cryptodev-vhost-user.c | 5 -----
 1 file changed, 5 deletions(-)
backends/cryptodev-vhost-user.c +0 -5
index 862d4f2..67e65c6 100644
@@ -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(
Signature · 1 line
1.8.3.1