]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: s2io: Use skb_put_data() instead of skb_put/memcpy pair
authorShang XiaoJing <shangxiaojing@huawei.com>
Tue, 27 Sep 2022 02:28:02 +0000 (10:28 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 Sep 2022 07:19:09 +0000 (09:19 +0200)
commit1d79ac59b66c06c2f233ff884be3aad8f2a996d7
treeba5b87976b28b0c550962bf71834a87c5d97b0f9
parentddb87842cec53b89b2d8bb4c5a4497ad2badd473
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: Shang XiaoJing <shangxiaojing@huawei.com>
Link: https://lore.kernel.org/r/20220927022802.16050-1-shangxiaojing@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/neterion/s2io.c