Skip to content
Commit 1469327b authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Paolo Abeni
Browse files

ethernet: s2io: Use skb_put_data() instead of skb_put/memcpy pair



Use skb_put_data() instead of skb_put() and memcpy(), which is shorter
and clear. Drop the tmp variable that is not needed any more.

Signed-off-by: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927022802.16050-1-shangxiaojing@huawei.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent ceed40d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment