net: hns3: use memcpy to simplify code
authorPeng Li <lipeng321@huawei.com>
Fri, 27 Aug 2021 09:28:20 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 10:20:21 +0000 (11:20 +0100)
commit304cd8e776ddca5021dd9c1d7603ea40afc48ec6
treed3f9d07ffdf54433c095a8b076abb310da449f10
parent67821a0cf5c97690d7d00b5afe5137ebe29f60fd
net: hns3: use memcpy to simplify code

Use memcpy to copy req->msg.resp_data to resp->additional_info,
to simplify the code and improve a little efficiency.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c