From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CF1E343BAC; Fri, 1 Mar 2024 04:35:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF8CC42EF4; Fri, 1 Mar 2024 04:35:46 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 319A94025C; Fri, 1 Mar 2024 04:35:45 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4211ILYj005278; Thu, 29 Feb 2024 19:35:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= pfpt0220; bh=QmNT5NUMIbPHzXcLsBkJ9nONR4OMGeg4J7T1faJdbhg=; b=RwZ ZmkPVVYi7V1uxVFwu159/yfN3+Y3k6rYWh/+QOIy88tT1jU3S7iOrtzcPJga/PAG xqjxyk2o/PR1yxEbD2IIafrzAj/IEvqFlfzvD3z/FpehFOW8Wml6x65pJUk4BeQ7 nnFlnkIp/aLnU3y303wmSCJDZdnXVAQXNHvpwS2D0nN10Oar3Pm/noGUt+O5jIRU gWSHFcx/TsB2tHkzLjLDFoQLEI43DKJv0IH2kMV9Io1OGfGEfN/5V7ZK95MChgqL VzvZQDd/yT8pfmZ+BVlKTCdYfesWgzTQSVI7mBVy+1GHW1dB471afuyqwY4wkrDC hiVyhQRo+LsGGVR0NBQ== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wjfay664p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 19:35:44 -0800 (PST) Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Thu, 29 Feb 2024 19:35:43 -0800 Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 29 Feb 2024 19:35:41 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 29 Feb 2024 19:35:40 -0800 Received: from cavium-OptiPlex-3070-BM17.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 5AF8B3F710F; Thu, 29 Feb 2024 19:35:38 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH v2 1/2] common/cnxk: remove dead code Date: Fri, 1 Mar 2024 09:05:33 +0530 Message-ID: <20240301033534.1968900-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240228064643.1923169-1-psatheesh@marvell.com> References: <20240228064643.1923169-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: YtUU6cU474I9Q_mvHUPfZo_JBwwkZ7Sa X-Proofpoint-GUID: YtUU6cU474I9Q_mvHUPfZo_JBwwkZ7Sa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-29_08,2024-02-29_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Satheesh Paul Removed dead code reported by Coverity. Coverity issue: 380992 Fixes: da1ec39060b2 ("common/cnxk: delay inline device RQ enable to dev start") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Reviewed-by: Nithin Dabilpuram --- v2: * Split the patch and updated commit message. drivers/common/cnxk/roc_nix_inl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c index a205c658e9..7dbeae5017 100644 --- a/drivers/common/cnxk/roc_nix_inl.c +++ b/drivers/common/cnxk/roc_nix_inl.c @@ -677,8 +677,7 @@ roc_nix_reassembly_configure(uint32_t max_wait_time, uint16_t max_frags) return -EFAULT; PLT_SET_USED(max_frags); - if (idev == NULL) - return -ENOTSUP; + roc_cpt = idev->cpt; if (!roc_cpt) { plt_err("Cannot support inline inbound, cryptodev not probed"); -- 2.39.2