From: Nicolas Chautru Date: Tue, 6 Aug 2019 14:08:59 +0000 (-0700) Subject: baseband/turbo_sw: remove dead code X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4e8cd9041e408014bc799474fca1cce637ff340f;p=dpdk.git baseband/turbo_sw: remove dead code Error handling code cannot logically be reached. Coverity issue: 344980, 344992 Fixes: c769c711757a ("baseband/turbo_sw: extend for 5G") Signed-off-by: Nicolas Chautru --- diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c index acb63a4478..f2fe7a2194 100644 --- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c +++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c @@ -1610,12 +1610,6 @@ enqueue_dec_one_op(struct turbo_sw_queue *q, struct rte_bbdev_dec_op *op, } r++; } - - if (mbuf_total_left != 0) { - op->status |= 1 << RTE_BBDEV_DATA_ERROR; - rte_bbdev_log(ERR, - "Mismatch between mbuf length and included Circular buffer sizes"); - } } static inline void @@ -1706,12 +1700,6 @@ enqueue_ldpc_dec_one_op(struct turbo_sw_queue *q, struct rte_bbdev_dec_op *op, } r++; } - - if (mbuf_total_left != 0) { - op->status |= 1 << RTE_BBDEV_DATA_ERROR; - rte_bbdev_log(ERR, - "Mismatch between mbuf length and included Circular buffer sizes"); - } } static inline uint16_t