From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 68112A00E6 for ; Tue, 6 Aug 2019 23:13:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F3EC01B946; Tue, 6 Aug 2019 23:12:54 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D48591B197 for ; Tue, 6 Aug 2019 23:12:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 14:12:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,353,1559545200"; d="scan'208";a="325757964" Received: from skx-5gnr-sc12-4.sc.intel.com ([172.25.69.210]) by orsmga004.jf.intel.com with ESMTP; 06 Aug 2019 14:12:49 -0700 From: Nicolas Chautru To: dev@dpdk.org, akhil.goyal@nxp.com Cc: ferruh.yigit@intel.com, thomas@monjalon.net, john.mcnamara@intel.com, Nicolas Chautru Date: Tue, 6 Aug 2019 07:08:59 -0700 Message-Id: <1565100540-60599-2-git-send-email-nicolas.chautru@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1565100540-60599-1-git-send-email-nicolas.chautru@intel.com> References: <1565100540-60599-1-git-send-email-nicolas.chautru@intel.com> Subject: [dpdk-dev] [PATCH v2 1/2] baseband/turbo_sw: remove logically dead code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Error handling code cannot logically be reached. Coverity issue : 344980, 344992 Fixes: c769c711757a ("baseband/turbo_sw: extend for 5G") Signed-off-by: Nicolas Chautru --- drivers/baseband/turbo_sw/bbdev_turbo_software.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c index acb63a4..f2fe7a2 100644 --- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c +++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c @@ -1610,12 +1610,6 @@ struct turbo_sw_queue { } 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 @@ struct turbo_sw_queue { } 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 -- 1.8.3.1