summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/asix
diff options
context:
space:
mode:
authorShang XiaoJing <shangxiaojing@huawei.com>2022-09-27 10:30:43 +0800
committerPaolo Abeni <pabeni@redhat.com>2022-09-29 09:37:29 +0200
commit85e69a7dd693667b3e3114713d61edef7552ca88 (patch)
tree89a488118a57aed2d4d47d8f8e1aa53e987de9a8 /drivers/net/ethernet/asix
parent1469327bb3dd04c0c84692e9af930bdd3f7b4230 (diff)
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>
Diffstat (limited to 'drivers/net/ethernet/asix')
-rw-r--r--drivers/net/ethernet/asix/ax88796c_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/asix/ax88796c_main.c b/drivers/net/ethernet/asix/ax88796c_main.c
index f1d610efd69e..8b7cdf015a16 100644
--- a/drivers/net/ethernet/asix/ax88796c_main.c
+++ b/drivers/net/ethernet/asix/ax88796c_main.c
@@ -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);