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 46EED4253E; Fri, 8 Sep 2023 07:40:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A0A340285; Fri, 8 Sep 2023 07:40:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 2B2B640042 for ; Fri, 8 Sep 2023 07:40:07 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3885H6XR020867; Thu, 7 Sep 2023 22:40:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Qe22KDKJ8KRTPWvutbWvOHgW3chhC4ZZQkLL92wdFms=; b=SQRrOPHaagt23UnCjXm7HUR5RP8yid2pEHlElvyVwS9m55XC1Kg7T8n369BcY4dA8YB/ StQE6ci0UBrotJS9pb/XihS1GD7pv7nc+qNHR0J1fcq7CZTL39awys4hBqxWUQr3xqvs 7a2twRNwwvICr1DidSzNRsWPVQxV3n6kq2dTLJCvI8gGspOK33HCLwrA4bPP8xvkV8Mf 5gsZ8P0NVUY6HxDAOyU0I7Qo6YBglDnpVKIW+ZBSNgqd9fGCnwpDV9y6KuSfF9j2Vp+I vz3ibwCYQKlSOZE71eMTbQuaWfzjvC0a6WWB+A/StUv3mRa6Vg5H3usxr2OXOMGdzD/Y OQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3syk9ajb21-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Sep 2023 22:40:06 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 7 Sep 2023 22:40:04 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 7 Sep 2023 22:40:04 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.163.189]) by maili.marvell.com (Postfix) with ESMTP id A7CC75B697E; Thu, 7 Sep 2023 22:40:02 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Ciara Power CC: Jerin Jacob , Subject: [PATCH 1/4] security: remove redundant cast Date: Fri, 8 Sep 2023 11:10:00 +0530 Message-ID: <20230908054003.295-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: yR2Tz52vYCKw2ihAdst-mQdv5QLqeAiq X-Proofpoint-GUID: yR2Tz52vYCKw2ihAdst-mQdv5QLqeAiq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-08_03,2023-09-05_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 The API 'rte_cryptodev_get_sec_ctx' returns void *. Type cast is not required. Signed-off-by: Anoob Joseph --- lib/security/rte_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/security/rte_security.c b/lib/security/rte_security.c index c4d64bb8e9..71910863bc 100644 --- a/lib/security/rte_security.c +++ b/lib/security/rte_security.c @@ -385,7 +385,7 @@ security_capabilities_from_dev_id(int dev_id, const void **caps) if (rte_cryptodev_is_valid_dev(dev_id) == 0) return -EINVAL; - sec_ctx = (struct rte_security_ctx *)rte_cryptodev_get_sec_ctx(dev_id); + sec_ctx = rte_cryptodev_get_sec_ctx(dev_id); RTE_PTR_OR_ERR_RET(sec_ctx, -EINVAL); capabilities = rte_security_capabilities_get(sec_ctx); -- 2.25.1