aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJay Zhou <jianjay.zhou@huawei.com>2018-04-28 13:54:24 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-07-30 14:00:11 +0200
commitcc4c77e12b422db8a685cec97866950895a684bc (patch)
treecb1a120d9d459e7a5e60980acae9529b0d5785cf /backends
parente4dab9449a41d1bc61e4866c6fe2582513ddbff4 (diff)
downloadqemu-cc4c77e12b422db8a685cec97866950895a684bc.zip
qemu-cc4c77e12b422db8a685cec97866950895a684bc.tar.gz
qemu-cc4c77e12b422db8a685cec97866950895a684bc.tar.bz2
backends/cryptodev: remove dead code
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>
Diffstat (limited to 'backends')
-rw-r--r--backends/cryptodev-vhost-user.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/backends/cryptodev-vhost-user.c b/backends/cryptodev-vhost-user.c
index d52dacc..d539f14 100644
--- a/backends/cryptodev-vhost-user.c
+++ b/backends/cryptodev-vhost-user.c
@@ -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(