dpdk-cryptodev: fix coverity issues

Copy v23.10-rc0-154-gfeda2ff64 fix to the unbatched path

Type: fix
Signed-off-by: Dmitry Valter <d-valter@yandex-team.com>
Change-Id: I2f58ed9a39439b22918946f328f96e676c68add9
This commit is contained in:
Dmitry Valter
2024-03-07 17:55:29 +00:00
committed by Fan Zhang
parent e119586138
commit b300180082

View File

@ -521,7 +521,7 @@ cryptodev_frame_dequeue_internal (vlib_main_t *vm, u32 *enqueue_thread_idx)
while (n_elts)
{
fe[0].status = cryptodev_status_conversion[cop[0]->op.status];
err0 |= (fe[0].status == VNET_CRYPTO_OP_STATUS_COMPLETED) << n;
err0 |= ((u64) (fe[0].status == VNET_CRYPTO_OP_STATUS_COMPLETED)) << n;
n++;
fe++;
cop++;