Commit 85e69a7d authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Paolo Abeni

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: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927023043.17769-1-shangxiaojing@huawei.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 1469327b
...@@ -293,7 +293,7 @@ ax88796c_tx_fixup(struct net_device *ndev, struct sk_buff_head *q) ...@@ -293,7 +293,7 @@ ax88796c_tx_fixup(struct net_device *ndev, struct sk_buff_head *q)
skb_put(skb, padlen); skb_put(skb, padlen);
/* EOP header */ /* 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); skb_unlink(skb, q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment