net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair

Use skb_put_data() instead of skb_put() and memcpy(), which is clear.

Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927023043.17769-1-shangxiaojing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Shang XiaoJing 2022-09-27 10:30:43 +08:00 committed by Paolo Abeni
parent 1469327bb3
commit 85e69a7dd6

View File

@ -293,7 +293,7 @@ ax88796c_tx_fixup(struct net_device *ndev, struct sk_buff_head *q)
skb_put(skb, padlen);
/* EOP header */
memcpy(skb_put(skb, TX_EOP_SIZE), &info.eop, TX_EOP_SIZE);
skb_put_data(skb, &info.eop, TX_EOP_SIZE);
skb_unlink(skb, q);