baseband/turbo_sw: remove dead code
authorNicolas Chautru <nicolas.chautru@intel.com>
Tue, 6 Aug 2019 14:08:59 +0000 (07:08 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 21:33:14 +0000 (23:33 +0200)
Error handling code cannot logically be reached.

Coverity issue: 344980, 344992
Fixes: c769c711757a ("baseband/turbo_sw: extend for 5G")

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
drivers/baseband/turbo_sw/bbdev_turbo_software.c

index acb63a4..f2fe7a2 100644 (file)
@@ -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