* [PATCH -next] net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair
@ 2022-09-27 2:30 Shang XiaoJing
2022-09-29 8:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Shang XiaoJing @ 2022-09-27 2:30 UTC (permalink / raw)
To: l.stelmach, davem, edumazet, kuba, pabeni, netdev; +Cc: shangxiaojing
Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
---
drivers/net/ethernet/asix/ax88796c_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair
2022-09-27 2:30 [PATCH -next] net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair Shang XiaoJing
@ 2022-09-29 8:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-29 8:00 UTC (permalink / raw)
To: Shang XiaoJing; +Cc: l.stelmach, davem, edumazet, kuba, pabeni, netdev
Hello:
This patch was applied to netdev/net-next.git (master)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 27 Sep 2022 10:30:43 +0800 you wrote:
> Use skb_put_data() instead of skb_put() and memcpy(), which is clear.
>
> Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com>
> ---
> drivers/net/ethernet/asix/ax88796c_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [-next] net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair
https://git.kernel.org/netdev/net-next/c/85e69a7dd693
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-29 8:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-27 2:30 [PATCH -next] net: ax88796c: Use skb_put_data() instead of skb_put/memcpy pair Shang XiaoJing
2022-09-29 8:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).