DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/4] security: remove redundant cast
@ 2023-09-08  5:40 Anoob Joseph
  2023-09-08  5:40 ` [PATCH 2/4] test/crypto: " Anoob Joseph
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Anoob Joseph @ 2023-09-08  5:40 UTC (permalink / raw)
  To: Akhil Goyal, Ciara Power; +Cc: Jerin Jacob, dev

The API 'rte_cryptodev_get_sec_ctx' returns void *. Type cast is not
required.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-20 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-08  5:40 [PATCH 1/4] security: remove redundant cast Anoob Joseph
2023-09-08  5:40 ` [PATCH 2/4] test/crypto: " Anoob Joseph
2023-09-08  5:40 ` [PATCH 3/4] app/crypto-perf: " Anoob Joseph
2023-09-08  5:40 ` [PATCH 4/4] examples/ipsec-secgw: " Anoob Joseph
2023-09-08 10:36 ` [PATCH 1/4] security: " Power, Ciara
2023-09-20 11:18 ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).