diff options
author | Shang XiaoJing <shangxiaojing@huawei.com> | 2022-09-27 05:30:43 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-09-29 10:37:29 +0300 |
commit | 85e69a7dd693667b3e3114713d61edef7552ca88 (patch) | |
tree | 89a488118a57aed2d4d47d8f8e1aa53e987de9a8 /drivers | |
parent | 1469327bb3dd04c0c84692e9af930bdd3f7b4230 (diff) | |
download | linux-85e69a7dd693667b3e3114713d61edef7552ca88.tar.xz |
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')
-rw-r--r-- | drivers/net/ethernet/asix/ax88796c_main.c | 2 |
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); |