From: Nicolas Chautru Date: Mon, 19 Oct 2020 21:09:57 +0000 (-0700) Subject: baseband/acc100: remove useless checks X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=95ddd8ffc44ef5be5be5338f5ea3bd3f2f172d07;p=dpdk.git baseband/acc100: remove useless checks Coverity reported dead code for a few error checks which are indeed not reachable. Coverity issue: 363451, 363454, 363455 Fixes: 5ad5060f8f7a ("baseband/acc100: add LDPC processing functions") Fixes: f404dfe35cc3 ("baseband/acc100: support 4G processing") Signed-off-by: Nicolas Chautru Reviewed-by: Tom Rix --- diff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/baseband/acc100/rte_acc100_pmd.c index 47ddbae422..5e663a62dd 100644 --- a/drivers/baseband/acc100/rte_acc100_pmd.c +++ b/drivers/baseband/acc100/rte_acc100_pmd.c @@ -2519,9 +2519,6 @@ enqueue_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, r++; } - if (unlikely(desc == NULL)) - return current_enqueued_cbs; - #ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left(mbuf_total_left) != 0) return -EINVAL; @@ -3076,9 +3073,6 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, r++; } - if (unlikely(desc == NULL)) - return current_enqueued_cbs; - #ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left(mbuf_total_left) != 0) return -EINVAL; @@ -3181,9 +3175,6 @@ enqueue_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, r++; } - if (unlikely(desc == NULL)) - return current_enqueued_cbs; - #ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left(mbuf_total_left) != 0) return -EINVAL;