[RFC 7/8] vhost: replace rte_memcpy to fix warning
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 7 19:17:45 CEST 2022
Using rte_memcpy is not needed here. Just use memcpy() which
is safer and just as fast for this non-critical place.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/vhost/vhost_crypto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c
index b1c0eb6a0f97..e8727f076fdd 100644
--- a/lib/vhost/vhost_crypto.c
+++ b/lib/vhost/vhost_crypto.c
@@ -585,7 +585,7 @@ copy_data(void *dst_data, struct vhost_crypto_data_req *vc_req,
if (unlikely(!src || !dlen))
return -1;
- rte_memcpy((uint8_t *)data, src, dlen);
+ memcpy(data, src, dlen);
data += dlen;
if (unlikely(dlen < to_copy)) {
--
2.35.1
More information about the dev
mailing list