Automatically generated by devtools/cocci/rte_memcpy.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/ethdev/rte_ethdev.c | 3 +--
lib/ethdev/rte_flow.c | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
@@ -15,7 +15,6 @@
#include <rte_log.h>
#include <rte_interrupts.h>
#include <rte_kvargs.h>
-#include <rte_memcpy.h>
#include <rte_common.h>
#include <rte_mempool.h>
#include <rte_malloc.h>
@@ -618,7 +617,7 @@ rte_eth_dev_owner_get(const uint16_t port_id, struct rte_eth_dev_owner *owner)
rte_spinlock_lock(rte_mcfg_ethdev_get_lock());
if (eth_dev_shared_data_prepare() != NULL) {
- rte_memcpy(owner, ðdev->data->owner, sizeof(*owner));
+ memcpy(owner, ðdev->data->owner, sizeof(*owner));
ret = 0;
} else {
ret = -ENOMEM;
@@ -994,9 +994,8 @@ rte_flow_conv_rule(struct rte_flow_conv_rule *dst,
if (src->attr_ro) {
off = RTE_ALIGN_CEIL(off, sizeof(double));
if (size && size >= off + sizeof(*dst->attr))
- dst->attr = rte_memcpy
- ((void *)((uintptr_t)dst + off),
- src->attr_ro, sizeof(*dst->attr));
+ dst->attr = memcpy((void *)((uintptr_t)dst + off),
+ src->attr_ro, sizeof(*dst->attr));
off += sizeof(*dst->attr);
}
if (src->pattern_ro) {