]> git.proxmox.com Git - mirror_qemu.git/commitdiff
backends/cryptodev: remove dead code
authorJay Zhou <jianjay.zhou@huawei.com>
Sat, 28 Apr 2018 05:54:24 +0000 (13:54 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Jul 2018 12:00:11 +0000 (14:00 +0200)
Fix Coverity issue 1390600.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Message-Id: <1524894864-7492-1-git-send-email-jianjay.zhou@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
backends/cryptodev-vhost-user.c

index d52daccfcd7a7c17d2753bcabb6aefb34604a2fd..d539f14d59f490e09d5c70cb9875e499ec4f645f 100644 (file)
@@ -157,7 +157,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);
@@ -174,10 +173,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(