summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2019-03-25 14:37:31 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commitbc5560c15e74d66b019b4bbbd5573519b0a462c3 (patch)
tree9e2cd64bd25533152a2b13fec186ea444694c7b9
parent12e9e70c89cd3fc9baa9b82ac21bce5ccb6c4d25 (diff)
downloaddpdk-next-eventdev-bc5560c15e74d66b019b4bbbd5573519b0a462c3.zip
dpdk-next-eventdev-bc5560c15e74d66b019b4bbbd5573519b0a462c3.tar.gz
dpdk-next-eventdev-bc5560c15e74d66b019b4bbbd5573519b0a462c3.tar.xz
vhost/crypto: fix parens
Coverity issue: 277214, 277220, 277233, 277236 Fixes: cd1e8f03abf0 ("vhost/crypto: fix packet copy in chaining mode") Cc: stable@dpdk.org Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
-rw-r--r--lib/librte_vhost/vhost_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_vhost/vhost_crypto.c b/lib/librte_vhost/vhost_crypto.c
index 9b4b850..0edf12d 100644
--- a/lib/librte_vhost/vhost_crypto.c
+++ b/lib/librte_vhost/vhost_crypto.c
@@ -1109,7 +1109,7 @@ prepare_sym_chain_op(struct vhost_crypto *vcrypto, struct rte_crypto_op *op,
if (unlikely(copy_data(digest_addr, vc_req, &digest_desc,
chain->para.hash_result_len,
- nb_descs, vq_size)) < 0) {
+ nb_descs, vq_size) < 0)) {
ret = VIRTIO_CRYPTO_BADMSG;
goto error_exit;
}
@@ -1627,7 +1627,7 @@ rte_vhost_crypto_fetch_requests(int vid, uint32_t qid,
op->sym->m_src->data_off = 0;
if (unlikely(vhost_crypto_process_one_req(vcrypto, vq,
- op, head, desc_idx)) < 0)
+ op, head, desc_idx) < 0))
break;
}