Automatically generated by devtools/cocci/rte_memcpy.cocci
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/common/idpf/idpf_common_device.c | 4 ++--
drivers/common/idpf/idpf_common_virtchnl.c | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
@@ -459,8 +459,8 @@ idpf_vport_init(struct idpf_vport *vport,
vport->num_rx_q = vport_info->num_rx_q;
vport->num_rx_bufq = vport_info->num_rx_bufq;
vport->max_mtu = vport_info->max_mtu;
- rte_memcpy(vport->default_mac_addr,
- vport_info->default_mac_addr, ETH_ALEN);
+ memcpy(vport->default_mac_addr, vport_info->default_mac_addr,
+ ETH_ALEN);
vport->rss_algorithm = vport_info->rss_algorithm;
vport->rss_key_size = RTE_MIN(IDPF_RSS_KEY_LEN,
vport_info->rss_key_size);
@@ -294,7 +294,8 @@ idpf_vc_caps_get(struct idpf_adapter *adapter)
return err;
}
- rte_memcpy(&adapter->caps, args.out_buffer, sizeof(struct virtchnl2_get_capabilities));
+ memcpy(&adapter->caps, args.out_buffer,
+ sizeof(struct virtchnl2_get_capabilities));
return 0;
}
@@ -331,7 +332,8 @@ idpf_vc_vport_create(struct idpf_vport *vport,
return err;
}
- rte_memcpy(&(vport->vport_info.info), args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
+ memcpy(&(vport->vport_info.info), args.out_buffer,
+ IDPF_DFLT_MBX_BUF_SIZE);
return 0;
}
@@ -387,7 +389,7 @@ idpf_vc_queue_grps_add(struct idpf_vport *vport,
return err;
}
- rte_memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
+ memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
return 0;
}