net/zxdh: replace rte_memcpy with structure assignment
PATCH 1/1 net/zxdh: replace rte_memcpy with structure assignment
The cocci/struct_assign script found where simple assignment could be used instead.
Signed-off-by Stephen Hemminger <[email protected]>
--- drivers/net/zxdh/zxdh_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/zxdh/zxdh_flow.c +1 -1
@@ -1884,7 +1884,7 @@ vf_flow_msg_process(enum zxdh_msg_type msg_type, struct rte_eth_dev *dev,struct zxdh_flow_op_rsp *flow_rsp = (struct zxdh_flow_op_rsp *)flow_op_rsp; dh_flow->hash_search_index = hw->hash_search_index; -rte_memcpy (&flow_msg->dh_flow, dh_flow,sizeof (struct zxdh_flow )); + flow_msg->dh_flow = *dh_flow;zxdh_msg_head_build (hw, msg_type, &msg_info); ret = zxdh_vf_send_msg_to_pf(dev, &msg_info, sizeof(struct zxdh_msg_info),
Signature · 1 line
2.53.0