mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
e4dab9449a
commit
cc4c77e12b
1 changed files with 0 additions and 5 deletions
|
@ -157,7 +157,6 @@ static void cryptodev_vhost_user_event(void *opaque, int event)
|
||||||
{
|
{
|
||||||
CryptoDevBackendVhostUser *s = opaque;
|
CryptoDevBackendVhostUser *s = opaque;
|
||||||
CryptoDevBackend *b = CRYPTODEV_BACKEND(s);
|
CryptoDevBackend *b = CRYPTODEV_BACKEND(s);
|
||||||
Error *err = NULL;
|
|
||||||
int queues = b->conf.peers.queues;
|
int queues = b->conf.peers.queues;
|
||||||
|
|
||||||
assert(queues < MAX_CRYPTO_QUEUE_NUM);
|
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);
|
cryptodev_vhost_user_stop(queues, s);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
|
||||||
error_report_err(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cryptodev_vhost_user_init(
|
static void cryptodev_vhost_user_init(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue