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 7EB864253E; Fri, 8 Sep 2023 07:40:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 358C74069F; Fri, 8 Sep 2023 07:40:15 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 294654069F for ; Fri, 8 Sep 2023 07:40:14 +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 3885WdVg020214; Thu, 7 Sep 2023 22:40:13 -0700 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=6+MJLO5M8bXM097gWEyVS86nxQ9AmATxizmKM+8wEjI=; b=aHneMDuv9ExwOjjwvdWSLwrF18IKiwnS6/hZiyPY2OXxTiEAIvItEqGxV7jTz3EmBn5Z ieeDdth9ondQPJQfEev9OuCOccK+WefG+pG6s/hl87PXyiTpgibLqgBn1VMXSxNeRtqO ELF6xKiVUM+866Oz7VWH8FIWuNcdrPALEaBaJC8bFdvHxa2Xhe1i/4pVxB0qOPTRc/Cc pfES0Pwi3rVXfo8BbW4q4+8ea4B+zW64wDhZWhev8g3gmuk7rKAl6Q/Vv74qxc1nFBgl T5FIQvENiURmQE9k5uh36l3x9hYgj/pX9ADOXRv/S7r0O1LZ3+6nCo9Ok26V87rQvJq+ bA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3syk9ajb2h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Sep 2023 22:40:13 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 7 Sep 2023 22:40:11 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 7 Sep 2023 22:40:11 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.28.163.189]) by maili.marvell.com (Postfix) with ESMTP id B75B65B693E; Thu, 7 Sep 2023 22:40:09 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Ciara Power CC: Jerin Jacob , Subject: [PATCH 4/4] examples/ipsec-secgw: remove redundant cast Date: Fri, 8 Sep 2023 11:10:03 +0530 Message-ID: <20230908054003.295-4-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230908054003.295-1-anoobj@marvell.com> References: <20230908054003.295-1-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: MBXQNZmXMTlPlV6bKFDENPcBqZWLnJuv X-Proofpoint-GUID: MBXQNZmXMTlPlV6bKFDENPcBqZWLnJuv 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 --- examples/ipsec-secgw/ipsec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index a5706bed24..984fb7a2ec 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -327,9 +327,7 @@ create_lookaside_session(struct ipsec_ctx *ipsec_ctx_lcore[], }; if (ips->type == RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) { - struct rte_security_ctx *ctx = (struct rte_security_ctx *) - rte_cryptodev_get_sec_ctx( - cdev_id); + struct rte_security_ctx *ctx = rte_cryptodev_get_sec_ctx(cdev_id); /* Set IPsec parameters in conf */ set_ipsec_conf(sa, &(sess_conf.ipsec)); -- 2.25.1